home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- from checkbox.variables import Variable
-
- class Attribute(object):
-
- def __init__(self, name, cls, variable_factory = None):
- self.name = name
- self.cls = cls
- if not variable_factory:
- pass
- self.variable_factory = Variable
-
-
-
- def get_attributes(cls):
- if '__checkbox_attributes__' in cls.__dict__:
- return cls.__dict__['__checkbox_attributes__']
- attributes = { }
- for name in dir(cls):
- attribute = getattr(cls, name, None)
- if isinstance(attribute, Attribute):
- attributes[name] = attribute
- continue
- '__checkbox_attributes__' in cls.__dict__
-
- cls.__checkbox_attributes__ = attributes
- return cls.__checkbox_attributes__
-
-