Skip to content

Commit

Permalink
Improved simple example.
Browse files Browse the repository at this point in the history
  • Loading branch information
puentesarrin committed Sep 25, 2013
1 parent 32b227a commit 59b1efb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -32,7 +32,7 @@ Usage
def post(self):
form = SumForm(self.request.arguments)
if form.validate():
self.write("Ok!")
self.write(str(form.data['a'] + form.data['b']))
else:
self.set_status(400)
self.write("" % form.errors)
Expand Down Expand Up @@ -64,4 +64,4 @@ Or manually, download the latest source from PyPI_::
$ sudo python setup.py install

.. _pip: https://pypi.python.org/pypi/pip
.. _PyPI: https://pypi.python.org/pypi/wtforms-tornado
.. _PyPI: https://pypi.python.org/pypi/wtforms-tornado
2 changes: 1 addition & 1 deletion examples/simple.py
Expand Up @@ -22,7 +22,7 @@ def get(self):
def post(self):
form = SumForm(self.request.arguments)
if form.validate():
self.write("Ok!")
self.write(str(form.data['a'] + form.data['b']))
else:
self.set_status(400)
self.write(form.errors)
Expand Down

0 comments on commit 59b1efb

Please sign in to comment.