changeset 105:827946df0d9c

text_x_arnica: (ugly) fix replaces hardcoded GET to POST for widget.databrowser.format
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 26 Jun 2008 14:06:38 +0200
parents 8cfbd286d1c7
children 93ddff1a23ed
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Thu Jun 26 13:45:09 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Thu Jun 26 14:06:38 2008 +0200
@@ -529,7 +529,11 @@
         browser = DataBrowserWidget(self.request, show_header=False)
         browser.setData(data)
 
-        return browser.format()
+        text = browser.format()
+        # XXX browser.format needs to get configurable for choosing the method
+        # ugly workaroound
+        # if this is not POST the slide_show actioon does send it's data by GET
+        return text.replace('method="GET"', 'method="POST"')
 
     def format(self, formatter):
         """ parser output """