web/views/editforms.py
changeset 3457 0924d0d08d60
parent 3451 6b46d73823f5
child 3460 e4843535db25
--- a/web/views/editforms.py	Wed Sep 23 20:12:48 2009 +0200
+++ b/web/views/editforms.py	Wed Sep 23 20:13:31 2009 +0200
@@ -54,7 +54,7 @@
                     Button(stdmsgs.NO, cwaction='cancel')]
     @property
     def action(self):
-        return self.build_url('edit')
+        return self._cw.build_url('edit')
 
     def __init__(self, *args, **kwargs):
         super(DeleteConfForm, self).__init__(*args, **kwargs)
@@ -291,15 +291,15 @@
     title = _('edition')
 
     def cell_call(self, row, col, **kwargs):
-        entity = self.complete_entity(row, col)
+        entity = self.cw_rset.complete_entity(row, col)
         self.render_form(entity)
 
     def render_form(self, entity):
         """fetch and render the form"""
         self.form_title(entity)
         form = self._cw.vreg['forms'].select('edition', self._cw, rset=entity.rset,
-                                         row=entity.row, col=entity.col, entity=entity,
-                                         submitmsg=self.submited_message())
+                                             row=entity.row, col=entity.col, entity=entity,
+                                             submitmsg=self.submited_message())
         self.init_form(form, entity)
         self.w(form.form_render(formvid=u'edition'))