web/views/autoform.py
branchstable
changeset 2096 58c485797b03
parent 2005 e8032965f37a
child 2143 d4c2fb633062
--- a/web/views/autoform.py	Wed Jun 10 18:45:06 2009 +0200
+++ b/web/views/autoform.py	Wed Jun 10 18:45:09 2009 +0200
@@ -137,8 +137,10 @@
             rschema = cls_or_self.schema.rschema(name)
             # XXX use a sample target type. Document this.
             tschemas = rschema.targets(eschema, role)
-            fieldcls = cls_or_self.rfields.etype_get(eschema, rschema, role, tschemas[0])
-            kwargs = cls_or_self.rfields_kwargs.etype_get(eschema, rschema, role, tschemas[0])
+            fieldcls = cls_or_self.rfields.etype_get(eschema, rschema, role,
+                                                     tschemas[0])
+            kwargs = cls_or_self.rfields_kwargs.etype_get(eschema, rschema,
+                                                          role, tschemas[0])
             if kwargs is None:
                 kwargs = {}
             if fieldcls: