Commit 507371a5 authored by Florian Hatat's avatar Florian Hatat Committed by ntome

Documentation for HTMLForm.submit parameters

parent fc7621de
......@@ -328,6 +328,9 @@ class Form(OrderedDict):
def submit(self, **kwargs):
"""
Submit the form and tell browser to be located to the new page.
:param data_encoding: force encoding used to submit form data (defaults to the current page encoding)
:type data_encoding: :class:`basestring`
"""
kwargs.setdefault('data_encoding', self.page.encoding)
return self.page.browser.location(self.request, **kwargs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment