web/views/editcontroller.py
changeset 4053 7cc66b1d9183
parent 4045 f4a52abb6f4f
child 4073 03681ba6da0b
--- a/web/views/editcontroller.py	Tue Dec 08 18:05:10 2009 +0100
+++ b/web/views/editcontroller.py	Tue Dec 08 07:54:51 2009 -0800
@@ -174,12 +174,12 @@
         try:
             for attr, value in field.process_posted(form):
                 if not (
-                    (field.role == 'subject' and eschema.has_subject_relation(field.name))
+                    (field.role == 'subject' and field.name in eschema.subjrels)
                     or
-                    (field.role == 'object' and eschema.has_object_relation(field.name))):
+                    (field.role == 'object' and field.name in eschema.objrels)):
                     continue
                 rschema = self._cw.vreg.schema.rschema(field.name)
-                if rschema.is_final():
+                if rschema.final:
                     rqlquery.kwargs[attr] = value
                     rqlquery.edited.append('X %s %%(%s)s' % (attr, attr))
                 elif rschema.inlined: