server/ssplanner.py
changeset 8697 574bb05e40a4
parent 8694 d901c36bcfce
child 8748 f5027f8d2478
child 8866 64f24ecad177
--- a/server/ssplanner.py	Thu Feb 14 16:01:24 2013 +0100
+++ b/server/ssplanner.py	Thu Feb 14 16:45:07 2013 +0100
@@ -57,7 +57,7 @@
                 if attrtype == 'Password' and isinstance(value, unicode):
                     value = value.encode('UTF8')
                 edef.edited_attribute(rtype, value)
-            elif to_build.has_key(str(rhs)):
+            elif str(rhs) in to_build:
                 # create a relation between two newly created variables
                 plan.add_relation_def((edef, rtype, to_build[rhs.name]))
             else: