changeset 261:6ec6242fae3a

text_x_arnica: workaround to remove the enclosing form definition by DataBrowserWidget for 1.7/1.8
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 10 Sep 2008 13:58:39 +0200
parents 0bf599bb643f
children c605998e1123
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Wed Sep 10 13:56:38 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Wed Sep 10 13:58:39 2008 +0200
@@ -589,7 +589,12 @@
             data.addRow(tuple(result))
         browser = DataBrowserWidget(self.request, show_header=False)
         browser.setData(data)
-        return browser.render(method="POST")
+        # workaround for 1.7/1.8 remove default definition of form in DataBrowserWidget
+        html = browser.render(method="POST")
+        dummy = '''<form action="%s" method="POST" name="dbw.form"><div><div>''' % Page(self.request, self.pagename).url(self.request)
+        html = html.replace(dummy, '').replace("</div></div></form>", "")
+        return html
+        
 
     def format(self, formatter):
         """ parser output """