def run(self):
     for tool in self.menu.keys():            # add a pre-validation step
         if security.allow(tool, self.user):
             break
     else:
         print "You're not authorized for any menu selections"
         return
     Menu.run(self)
Пример #2
0
 def run(self):
     for tool in self.menu.keys():  # add a pre-validation step
         if security.allow(tool, self.user):
             break
     else:
         print "You're not authorized for any menu selections"
         return
     Menu.run(self)
 def input(self):
     option = Menu.input(self)                # where do I get called?...
     return self.validate(option, 1)          # add post-validation
Пример #4
0
 def input(self):
     option = Menu.input(self)  # where do I get called?...
     return self.validate(option, 1)  # add post-validation