MCPcopy
hub / github.com/RUB-NDS/PRET / do_disable

Method do_disable

pjl.py:619–628  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

617
618 # ------------------------[ disable ]---------------------------------
619 def do_disable(self, arg):
620 jobmedia = self.cmd("@PJL DINQUIRE JOBMEDIA") or "?"
621 if "?" in jobmedia:
622 return output().info("Not available")
623 elif "ON" in jobmedia:
624 self.do_set("JOBMEDIA=OFF", False)
625 elif "OFF" in jobmedia:
626 self.do_set("JOBMEDIA=ON", False)
627 jobmedia = self.cmd("@PJL DINQUIRE JOBMEDIA") or "?"
628 output().info("Printing is now " + jobmedia)
629
630 # define alias but do not show alias in help
631 do_enable = do_disable

Callers

nothing calls this directly

Calls 4

cmdMethod · 0.95
do_setMethod · 0.95
outputClass · 0.90
infoMethod · 0.80

Tested by

no test coverage detected