summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-12-02 13:49:58 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-12-02 13:49:58 (GMT)
commit2945c37d2762e5442728852b01eebed7b3fc6429 (patch)
tree995e2db07638fbcc38ce903f530b6cf32fc4763e
parentec923ff2e2d0854d54cfa83282f066c85b65c948 (diff)
downloadpratic-2945c37d2762e5442728852b01eebed7b3fc6429.zip
pratic-2945c37d2762e5442728852b01eebed7b3fc6429.tar.gz
pratic-2945c37d2762e5442728852b01eebed7b3fc6429.tar.bz2
Fix bad attribute access
-rw-r--r--idp/extra/modules/root.ptl2
1 files changed, 1 insertions, 1 deletions
diff --git a/idp/extra/modules/root.ptl b/idp/extra/modules/root.ptl
index fbb7fba..db4713c 100644
--- a/idp/extra/modules/root.ptl
+++ b/idp/extra/modules/root.ptl
@@ -180,7 +180,7 @@ class AlternateRootDirectory(OldRootDirectory):
collectivity = get_request().cookies['collectivity']
except KeyError:
collectivity = None
- if collectivity not in [x.dn for x in collectivities]:
+ if collectivity not in [x[0] for x in collectivities]:
collectivity = None
form.add(SingleSelectWidget, 'collectivity', title = _('Collectivity'), required = True,
value = collectivity, options = collectivities)