def up(self): self.app.version = (0,5,0) orgs = Organizations() orgs.title = u'Organizations' self.app['orgs'] = orgs catalog = zope.component.queryUtility(ICatalog, 'gum_catalog') catalog['organization_id'] = FieldIndex('__name__', IOrganization) return "Organizations Container added. organization_id Index added."
def up(self): self.app.version = (0, 5, 0) orgs = Organizations() orgs.title = u'Organizations' self.app['orgs'] = orgs catalog = zope.component.queryUtility(ICatalog, 'gum_catalog') catalog['organization_id'] = FieldIndex('__name__', IOrganization) return "Organizations Container added. organization_id Index added."
def __init__(self): super(LDAPApp, self).__init__() self.title = 'Home' # for navigation self['groups'] = Groups() self['groups'].title = 'Groups' self['users'] = Users() self['users'].title = 'Users' self['transcripts'] = Transcripts() self['transcripts'].title = 'Transcripts' self['orgs'] = Organizations() self['orgs'].title = 'Organizations' self['smart'] = SmartSearches() self['smart'].title = 'Smart Searches' self['extensions'] = Extensions() self['extensions'].title = 'Extensions'