MCPcopy Create free account
hub / github.com/RUB-NDS/PRET / do_dicts

Method do_dicts

postscript.py:887–900  ·  view source on GitHub ↗

Return a list of dictionaries and their permissions.

(self, arg)

Source from the content-addressed store, hash-verified

885
886 # ------------------------[ dicts ]-----------------------------------
887 def do_dicts(self, arg):
888 "Return a list of dictionaries and their permissions."
889 output().info("acl len max dictionary")
890 output().info("────────────────────────────")
891 for dict in self.options_dump:
892 str_recv = self.cmd('1183615869 ' + dict + '\n'
893 'dup rcheck {(r) print}{(-) print} ifelse\n'
894 'dup wcheck {(w) print}{(-) print} ifelse\n'
895 'dup xcheck {(x) print}{(-) print} ifelse\n'
896 '( ) print dup length 128 string cvs print\n'
897 '( ) print maxlength 128 string cvs print')
898 if len(str_recv.split()) == 3:
899 output().info("%-5s %-5s %-5s %s" %
900 tuple(str_recv.split() + [dict]))
901
902 # ------------------------[ dump <dict> ]-----------------------------
903 def do_dump(self, arg, resource=False):

Callers

nothing calls this directly

Calls 3

cmdMethod · 0.95
outputClass · 0.90
infoMethod · 0.80

Tested by

no test coverage detected