| 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): |