server/ldaputils.py
branchstable
changeset 8586 bc74608d2003
parent 8473 2646a8e99b0d
child 8638 9f95c2368b8b
--- a/server/ldaputils.py	Wed Nov 14 11:06:24 2012 +0100
+++ b/server/ldaputils.py	Thu Nov 08 11:40:24 2012 +0100
@@ -137,13 +137,13 @@
     def _entity_update(self, source_entity):
         if self.urls:
             if len(self.urls) > 1:
-                raise ValidationError(source_entity, {'url': _('can only have one url')})
+                raise ValidationError(source_entity.eid, {'url': _('can only have one url')})
             try:
                 protocol, hostport = self.urls[0].split('://')
             except ValueError:
-                raise ValidationError(source_entity, {'url': _('badly formatted url')})
+                raise ValidationError(source_entity.eid, {'url': _('badly formatted url')})
             if protocol not in PROTO_PORT:
-                raise ValidationError(source_entity, {'url': _('unsupported protocol')})
+                raise ValidationError(source_entity.eid, {'url': _('unsupported protocol')})
 
     def update_config(self, source_entity, typedconfig):
         """update configuration from source entity. `typedconfig` is config