Skip to content

Commit

Permalink
form module docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Apr 14, 2012
1 parent 8394cca commit 075dadd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,17 @@ Other Helpers

.. autofunction:: includeme

:mod:`substanced.form` API
----------------------------

.. automodule:: substanced.form

.. autoclass:: Form
:members:

.. autoclass:: FormView
:members:

:mod:`substanced.objectmap` API
--------------------------------

Expand Down
5 changes: 5 additions & 0 deletions substanced/form/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,14 @@
resource_registry.registry = default_resources

class Form(deform.form.Form):
""" Subclass of ``deform.form.Form`` which uses a custom resource
registry designed for Substance D. XXX point at deform docs. """
default_resource_registry = resource_registry

class FormView(object):
""" A class which can be used as a view which introspects a schema to
present the form. XXX describe better using ``pyramid_deform``
documentation."""
form_class = Form
buttons = ()
schema = None
Expand Down

0 comments on commit 075dadd

Please sign in to comment.