Пример #1
0
 def __init__(self, initial):
   logging.info(dir(self))
   logging.info(dir(type(self)))
   # Convert from string representation.
   mode = initial.get("mode")
   if mode is not None:
     mode = int(mode, 8)
     bools = rwx.expand_mode(mode)
     for name, b in zip(self.names, bools):
       initial[name] = b
   logging.debug(initial)
   forms.Form.__init__(self, initial)
Пример #2
0
 def __init__(self, initial):
     logging.info(dir(self))
     logging.info(dir(type(self)))
     # Convert from string representation.
     mode = initial.get("mode")
     if mode is not None:
         mode = int(mode, 8)
         bools = rwx.expand_mode(mode)
         for name, b in zip(self.names, bools):
             initial[name] = b
     logging.debug(initial)
     forms.Form.__init__(self, initial)