add utility function to get polgroups path

This commit is contained in:
Frédéric Péters 2011-11-10 16:26:52 +01:00
parent 9b10df2130
commit 17cd0c6d97
1 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,6 @@ from zope import component
from plone.registry.interfaces import IRegistry
from interfaces import ITabellioSettings
def get_dossiers_path():
return component.getUtility(IRegistry).forInterface(ITabellioSettings, False).dossiersPath
@ -14,6 +13,9 @@ def get_documents_path():
def get_deputies_path():
return component.getUtility(IRegistry).forInterface(ITabellioSettings, False).deputiesPath
def get_polgroups_path():
return component.getUtility(IRegistry).forInterface(ITabellioSettings, False).polgroupsPath
def get_sessions():
settings = component.getUtility(IRegistry).forInterface(ITabellioSettings, False)
sessions = settings.sessions