Permalink
Browse files

Merge pull request #327 from liangent/master

Fix mismatching imports in docs/common_needs.rst
  • Loading branch information...
2 parents ece8b53 + 292ab5a commit b127c966597a7aeebc7c0e9f9fefc0c932e7b4b2 @miohtama miohtama committed on GitHub Dec 18, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/common_needs.rst
@@ -98,7 +98,7 @@ schema:
import colander
from deform import Form
- from deform.widget import TextInputWidget
+   from deform.widget import TextAreaWidget
class Person(colander.MappingSchema):
name = colander.SchemaNode(colander.String(),
@@ -169,7 +169,7 @@ the same pattern. For example:
:linenos:
from deform import Form
- from deform.widget import TextInputWidget
+   from deform.widget import TextAreaWidget
myform = Form(schema, buttons=('submit',))
myform['people']['person']['name'].widget = TextAreaWidget()
@@ -191,7 +191,7 @@ For example:
:linenos:
from deform import Form
- from deform.widget import TextInputWidget
+   from deform.widget import TextAreaWidget
myform = Form(schema, buttons=('submit',))
myform.set_widgets({'people.person.name':TextAreaWidget(),

0 comments on commit b127c96

Please sign in to comment.