Пример #1
0
 def __setattr__(self, name, value):
     if name in self.__dict__:
         self.__dict__[name] = value
     elif name in db_Group.properties():
         setattr(self.grp, name, value)
     else:
         setattr(self.thing, name, value)
Пример #2
0
 def __getattr__(self, name):
     if name in db_Group.properties():
         return getattr(self.grp, name)
     else:
         return getattr(self.thing, name)