Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

form module docs

  • Loading branch information...
commit 075daddc9c9f57af3f401f3d5dcc9be4159309df 1 parent 8394cca
@mcdonc mcdonc authored
Showing with 16 additions and 0 deletions.
  1. +11 −0 docs/api.rst
  2. +5 −0 substanced/form/__init__.py
View
11 docs/api.rst
@@ -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
--------------------------------
View
5 substanced/form/__init__.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.