def __init__(self, title, text, description, creator): DummyModel.__init__(self, title=title, text=text, description=description, creator=creator) self['attachments'] = DummyModel()
def __init__(self, *args, **kw): DummyModel.__init__(self) for item in kw.items(): setattr(self, item[0], item[1]) self._alert_prefs = {} self._pending_alerts = [] if 'security_state' not in kw: self.security_state = 'active'
def __init__(self): DummyModel.__init__(self) self[u'profiles'] = DummyModel() dummies = [ (u'dummy1', u'Dummy One'), (u'dummy2', u'Dummy Two'), (u'dummy3', u'Dummy Three'), ] for dummy in dummies: self[u'profiles'][0] = DummyModel(title=dummy[1]) self[u'communities'] = DummyModel()
def __init__(self): DummyModel.__init__(self) root = DummyRoot() root["communities"]["community"] = self
def __init__(self, *args, **kw): DummyModel.__init__(self) for item in kw.items(): setattr(self, item[0], item[1]) self._alert_prefs = {} self._pending_alerts = []