def __init__(self, *arg, **kw): _Site.__init__(self, *arg, **kw) catalog = Catalog() catalog['name'] = FieldIndex('__name__') catalog['title'] = FieldIndex(get_title) catalog['interfaces'] = KeywordIndex(get_interfaces) catalog['texts'] = TextIndex(get_textrepr) self.add_service('catalog', catalog)
def __init__(self, initial_login, initial_email, initial_password): Site.__init__(self, initial_login, initial_email, initial_password) acl = list(getattr(self, '__acl__', [])) acl.append((Allow, Everyone, 'view')) self.__acl__ = acl