mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
Use POST instead of GET for forms. It seems like it's working now.
This commit is contained in:
parent
25974bad85
commit
292bedebe6
@ -19,14 +19,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||||||
GNU Affero General Public License for more details.
|
GNU Affero General Public License for more details.
|
||||||
"""
|
"""
|
||||||
class Form():
|
class Form():
|
||||||
def __init__(self, action=None, cls='form', title=None, onsubmit=None, name=None, message='', method="get"):
|
def __init__(self, action=None, cls='form', title=None, onsubmit=None, name=None, message='', method="post"):
|
||||||
"""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
|
|
||||||
"""
|
|
||||||
|
|
||||||
action = self.get_form_attrib_text('action', action)
|
action = self.get_form_attrib_text('action', action)
|
||||||
onsubmit = self.get_form_attrib_text('onsubmit', onsubmit)
|
onsubmit = self.get_form_attrib_text('onsubmit', onsubmit)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user