server/querier.py
branchstable
changeset 3689 deb13e88e037
parent 3240 8604a15995d1
child 3877 7ca53fc72a0a
child 4212 ab6573088b4a
--- a/server/querier.py	Thu Oct 15 18:43:04 2009 +0200
+++ b/server/querier.py	Thu Oct 15 20:29:21 2009 +0200
@@ -389,7 +389,7 @@
                     # add constant values to entity def
                     value = rhs.eval(self.args)
                     eschema = edef.e_schema
-                    attrtype = eschema.subject_relation(rtype).objects(eschema)[0]
+                    attrtype = eschema.subjrels[rtype].objects(eschema)[0]
                     if attrtype == 'Password' and isinstance(value, unicode):
                         value = value.encode('UTF8')
                     edef[rtype] = value