Exemplo n.º 1
0
Arquivo: forms.py Projeto: kthguru/hue
 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)
Exemplo n.º 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)