add utility function to get polgroups path
This commit is contained in:
parent
9b10df2130
commit
17cd0c6d97
|
@ -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
|
||||
|
|
Reference in New Issue