Permalink
Browse files

Fix mismatching imports in docs/common_needs.rst

  • Loading branch information...
1 parent ece8b53 commit 292ab5a45cd0b1efa5bc234bbb6222d992df4afd @liangent liangent 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 292ab5a

Please sign in to comment.