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)
def __getattr__(self, name): if name in db_Group.properties(): return getattr(self.grp, name) else: return getattr(self.thing, name)