cleanup stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 10 Jun 2009 18:45:09 +0200
branchstable
changeset 2096 58c485797b03
parent 2095 897732d3ee5a
child 2097 400bdbcc5699
cleanup
web/views/autoform.py
--- 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: