def blacklisted_item_types(self): ''' The portal_types that will not be included in the document sidebar because they have their own sidebar ''' portal_types = get_record_from_registry( 'ploneintranet.workspace.sidebar.blacklisted_types', ( 'Event', 'todo', )) if self.grouping() != u'folder': portal_types += self.folderish_types return portal_types
def get_groups(self): ''' Return all the groups ''' only_membrane_groups = get_record_from_registry( 'ploneintranet.userprofile.only_membrane_groups', False) if only_membrane_groups: mt = api.portal.get_tool(name='membrane_tool') purl = api.portal.get_tool(name='portal_url') groups = map( BrainToGroupAdapter, mt.unrestrictedSearchResults( object_implements=(group_ifaces.IGroup.__identifier__), path=purl.getPortalPath())) else: groups = api.group.get_groups() return groups
def can_subscribe(self): ''' Check if we see the subscribe feature in the bulk actions ''' return get_record_from_registry( 'ploneintranet.workspace.allow_bulk_subscribe', False)
def include_clicktracker(self): """Is inclusion of slcclicktracker element enabled in the registry?""" include_slcclicktracker = get_record_from_registry( 'ploneintranet.workspace.include_slcclicktracker', False) return include_slcclicktracker