From 17cd0c6d97ebe9f42eade969b271bc4802a263ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 10 Nov 2011 16:26:52 +0100 Subject: [PATCH] add utility function to get polgroups path --- tabellio/config/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tabellio/config/utils.py b/tabellio/config/utils.py index 9d370ae..f89ac7e 100644 --- a/tabellio/config/utils.py +++ b/tabellio/config/utils.py @@ -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