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

Method do_hold

pjl.py:681–694  ·  view source on GitHub ↗

Enable job retention.

(self, arg)

Source from the content-addressed store, hash-verified

679
680 # ------------------------[ hold ]------------------------------------
681 def do_hold(self, arg):
682 "Enable job retention."
683 self.chitchat(
684 "Setting job retention, reconnecting to see if still enabled")
685 self.do_set("HOLD=ON", False)
686 self.do_reconnect()
687 output().raw("Retention for future print jobs: ", "")
688 hold = self.do_info("variables", "^HOLD", False)
689 output().info(
690 item(re.findall("=(.*)\s+\[", item(item(hold)))) or "NOT AVAILABLE"
691 )
692 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
693 # Sagemcom printers: @PJL SET RETAIN_JOB_BEFORE_PRINT = ON
694 # @PJL SET RETAIN_JOB_AFTER_PRINT = ON
695
696 # ------------------------[ nvram <operation> ]-----------------------
697 # nvram operations (brother-specific)

Callers

nothing calls this directly

Calls 8

do_setMethod · 0.95
do_infoMethod · 0.95
outputClass · 0.90
itemFunction · 0.90
do_reconnectMethod · 0.80
rawMethod · 0.80
infoMethod · 0.80
chitchatMethod · 0.45

Tested by

no test coverage detected