web/views/editforms.py
changeset 6039 6e84db1b3e44
parent 5940 0e3ae19b181a
child 6225 a176e68b7d0d
--- a/web/views/editforms.py	Wed Jul 28 16:31:32 2010 +0200
+++ b/web/views/editforms.py	Fri Jul 30 10:02:31 2010 +0200
@@ -169,7 +169,9 @@
 
     def url(self):
         """return the url associated with this view"""
-        return self.create_url(self._cw.form.get('etype'))
+        req = self._cw
+        return req.vreg["etypes"].etype_class(req.form['etype']).cw_create_url(
+            req)
 
     def submited_message(self):
         """return the message that will be displayed on successful edition"""