Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from romanofski/master
Browse files Browse the repository at this point in the history
Fixed documentation mistake
  • Loading branch information
davisagli committed Mar 16, 2012
2 parents c06cd95 + 9e8792c commit 29589fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.txt
Expand Up @@ -265,7 +265,7 @@ In Zope 2.10, the grokkers take care of wrapping the form in a
`plone.z3cform`_ FormWrapper as well. In Zope 2.12 and later, there is no
wrapper by default. If you want one (e.g. if you are using a custom template
and you need it to work in both Zope 2.10 and 2.12), you can use the
``form.wrapped()`` directive in the form class.
``form.wrap()`` directive in the form class.

The base classes can all be imported from ``plone.directives.form``, e.g::

Expand Down Expand Up @@ -296,7 +296,7 @@ The allowed directives are:
* ``grok.name()`` to set a different name. By default your form will be
available as view @@yourformclassnamelowercase, but you can use
``grok.name()`` to set name explicitly.
* ``form.wrapped()`` to wrap the form in a layout wrapper view. You can pass
* ``form.wrap()`` to wrap the form in a layout wrapper view. You can pass
an argument of ``True`` or ``False`` to enable or disable wrapping. If no
argument is given, it defaults to ``True``. If omitted, the global default
is used, which is to wrap in Zope 2.11 or earlier, and to not wrap in Zope
Expand Down
4 changes: 4 additions & 0 deletions docs/HISTORY.txt
Expand Up @@ -4,6 +4,10 @@ Changelog
1.1 - unreleased
----------------

* Fixes documentation mistake of documented ``form.wrapped()`` directive
which is in fact ``form.wrap()``
[romanofski]

* A number of schema directives were moved to other packages and reimplemented
to not depend on grok. The ``Schema`` class and the ``model``, ``fieldset``,
and ``primary`` directives were moved to ``plone.supermodel.model``. The
Expand Down

0 comments on commit 29589fc

Please sign in to comment.