Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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