summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@0d.be>2016-05-17 11:22:46 (GMT)
committerFrédéric Péters <fpeters@0d.be>2016-05-17 11:22:46 (GMT)
commitb3aea0ef352084f4fee8bcba7cfc32beb8fd0565 (patch)
treeceb802a0f989376920894c8d0ee02b1bc176ab0b
parentcfc909fb72f9615727a0308bff2242a3aea37ba0 (diff)
downloadtabellio.searchform-b3aea0ef352084f4fee8bcba7cfc32beb8fd0565.zip
tabellio.searchform-b3aea0ef352084f4fee8bcba7cfc32beb8fd0565.tar.gz
tabellio.searchform-b3aea0ef352084f4fee8bcba7cfc32beb8fd0565.tar.bz2
don't break if polgroups are not set
-rw-r--r--tabellio/searchform/form.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tabellio/searchform/form.py b/tabellio/searchform/form.py
index 7697a11..27c69a1 100644
--- a/tabellio/searchform/form.py
+++ b/tabellio/searchform/form.py
@@ -294,6 +294,8 @@ def possible_sessions(context):
def possible_polgroups(context):
current = getToolByName(context, 'portal_url').getPortalObject()
settings = component.getUtility(IRegistry).forInterface(ITabellioSettings, False)
+ if not settings.polgroupsPath:
+ return SimpleVocabulary([])
for part in settings.polgroupsPath.split('/'):
if not part:
continue