cleanup stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 07 Oct 2009 11:33:38 +0200
branchstable
changeset 3586 52b00c5e441a
parent 3585 cd437d24aa65
child 3587 5b3725f315fc
cleanup
web/views/autoform.py
web/views/editforms.py
--- a/web/views/autoform.py	Wed Oct 07 11:33:24 2009 +0200
+++ b/web/views/autoform.py	Wed Oct 07 11:33:38 2009 +0200
@@ -424,7 +424,7 @@
             # display inline-edition view for all existing related entities
             for i, relentity in enumerate(related.entities()):
                 if relentity.has_perm('update'):
-                    yield vvreg.select('inline-edition', self.req, related,
+                    yield vvreg.select('inline-edition', self.req, rset=related,
                                        row=i, col=0, rtype=rschema, role=role,
                                        peid=entity.eid, pform=self)
 
--- a/web/views/editforms.py	Wed Oct 07 11:33:24 2009 +0200
+++ b/web/views/editforms.py	Wed Oct 07 11:33:38 2009 +0200
@@ -504,7 +504,7 @@
     def add_hiddens(self, form, entity):
         """to ease overriding (see cubes.vcsfile.views.forms for instance)"""
         iid = 'rel-%s-%s-%s' % (self.peid, self.rtype, entity.eid)
-        #  * str(self.rtype) in case it's a schema object 
+        #  * str(self.rtype) in case it's a schema object
         #  * neged_role() since role is the for parent entity, we want the role
         #    of the inlined entity
         form.form_add_hidden(name=str(self.rtype), value=self.peid,