web/views/formrenderers.py
branchstable
changeset 5588 377c9adfe81e
parent 5424 8ecbcbff9777
child 5658 7b9553a9db65
child 5769 b3b48e0b8e3b
--- a/web/views/formrenderers.py	Wed May 26 12:31:40 2010 +0200
+++ b/web/views/formrenderers.py	Wed May 26 12:31:43 2010 +0200
@@ -174,12 +174,8 @@
             enctype = 'multipart/form-data'
         else:
             enctype = 'application/x-www-form-urlencoded'
-        if form.action is None:
-            action = self._cw.build_url('edit')
-        else:
-            action = form.action
         tag = ('<form action="%s" method="post" enctype="%s"' % (
-            xml_escape(action or '#'), enctype))
+            xml_escape(form.form_action() or '#'), enctype))
         if form.domid:
             tag += ' id="%s"' % form.domid
         if form.onsubmit: