Skip to content

Commit

Permalink
fix changing a widget docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Jun 13, 2010
1 parent 3802a82 commit 8173bda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,10 @@ constructor is called with the schema. For example:
:linenos:
from deform import Form
from deform.widget import TextInputWidget
myform = Form(schema, buttons=('submit',))
myform['people']['person']['name'] = deform.widget.TextInputWidget(size=10)
myform['people']['person']['name'].widget = TextInputWidget(size=10)
The above associates the String field named ``name`` in the rendered
form with the widget named :class:`deform.widget.TextInputWidget`.
Expand Down

0 comments on commit 8173bda

Please sign in to comment.