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

Method show_lock

pjl.py:815–827  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

813 self.show_lock()
814
815 def show_lock(self):
816 passwd = self.cmd("@PJL DINQUIRE PASSWORD") or "UNSUPPORTED"
817 cplock = self.cmd("@PJL DINQUIRE CPLOCK") or "UNSUPPORTED"
818 disklock = self.cmd("@PJL DINQUIRE DISKLOCK") or "UNSUPPORTED"
819 if "?" in passwd:
820 passwd = "UNSUPPORTED"
821 if "?" in cplock:
822 cplock = "UNSUPPORTED"
823 if "?" in disklock:
824 disklock = "UNSUPPORTED"
825 output().info("PIN protection: " + passwd)
826 output().info("Panel lock: " + cplock)
827 output().info("Disk lock: " + disklock)
828
829 # ------------------------[ unlock <pin> ]----------------------------
830 def do_unlock(self, arg):

Callers 2

do_lockMethod · 0.95
do_unlockMethod · 0.95

Calls 3

cmdMethod · 0.95
outputClass · 0.90
infoMethod · 0.80

Tested by

no test coverage detected