From 292bedebe6cce6a384c02af0b7fb2813addad557 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Mon, 4 Nov 2013 02:13:27 +0000 Subject: [PATCH] Use POST instead of GET for forms. It seems like it's working now. --- modules/installed/lib/forms.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/modules/installed/lib/forms.py b/modules/installed/lib/forms.py index 827e11048..4980efd37 100644 --- a/modules/installed/lib/forms.py +++ b/modules/installed/lib/forms.py @@ -19,14 +19,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. """ class Form(): - def __init__(self, action=None, cls='form', title=None, onsubmit=None, name=None, message='', method="get"): - """Note that there appears to be a bug in cherrypy whereby - forms submitted via post don't have their fields included in - kwargs for the default index method. So we use get by - default, though it's not as neat. - - TODO: file bug on this w/ CherryPy project - """ + def __init__(self, action=None, cls='form', title=None, onsubmit=None, name=None, message='', method="post"): action = self.get_form_attrib_text('action', action) onsubmit = self.get_form_attrib_text('onsubmit', onsubmit)