summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-05-14 21:20:58 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-05-14 21:20:58 (GMT)
commit5bfb717810bff4b30a2ce0f01ca4f88d811bab54 (patch)
treef5ff2635990d5fb68036f24328e30bd8bad49f6c
parentbe89035ed633d765d46175f3261c0009bac1031c (diff)
downloadpratic-5bfb717810bff4b30a2ce0f01ca4f88d811bab54.zip
pratic-5bfb717810bff4b30a2ce0f01ca4f88d811bab54.tar.gz
pratic-5bfb717810bff4b30a2ce0f01ca4f88d811bab54.tar.bz2
Fix problème with html_text string passed as argument
-rw-r--r--idp/extra/modules/services_ui.ptl2
1 files changed, 1 insertions, 1 deletions
diff --git a/idp/extra/modules/services_ui.ptl b/idp/extra/modules/services_ui.ptl
index 552dcb6..2e49fe6 100644
--- a/idp/extra/modules/services_ui.ptl
+++ b/idp/extra/modules/services_ui.ptl
@@ -371,7 +371,7 @@ class ServiceDirectory(Directory):
for si in service_instances:
sid=si.cdg59siid
try:
- if not hasattr(ldap.dn, 'str2dn'):
+ if not hasattr(ldap.dn, str('str2dn')):
raise KeyError
ou=[x[0][1] for x in ldap.dn.str2dn(si.dn, flags=ldap.DN_FORMAT_LDAPV3) if x[0][0] == 'ou' ][0]
collectivity = directory.get_collectivity(ou)