Browse files

Add example usage in README.rst

  • Loading branch information...
1 parent d8409e5 commit c6e0c7bb66deacacd0228d7a531176b5f14fffdb @jarus committed Jan 17, 2012
Showing with 17 additions and 1 deletion.
  1. +17 −1 README.rst
View
18 README.rst
@@ -24,4 +24,20 @@ If you only can use `easy_install` than use
Flask-fillin requires to run some packages (they will be installed automatically if they not already installed):
* Flask
-* lxml
+* lxml
+
+Example Usage
+=============
+
+::
+
+ from flask.ext.fillin import FormWrapper
+
+ client = FlaskClient(flask_app, response_wrapper=FormWrapper)
+ response = client.get('/page_with_form')
+
+ response.form.fields['username'] = 'my username'
+ response.form.fields['password'] = 'secret'
+ response.form.fields['remember'] = True
+
+ response.form.submit(client)

0 comments on commit c6e0c7b

Please sign in to comment.