Trees | Index | Help |
---|
Package XSLForms :: Module Fields :: Class Form |
|
FieldProcessor
--+
|
Form
A collection of documents processed from form fields.
Method Summary | |
---|---|
Initialise the form data container with the general 'args' and 'kw' parameters. | |
Get the form data document with the given 'name' from the container, returning a DOM-style document object if such a document exists, or None if no such document can be found. | |
Get the form data documents from the container, returning a dictionary mapping document names to DOM-style document objects. | |
Get the request parameters (or fields) from the container. | |
Get the form data selectors for the given 'name', returning a collection of selected elements. | |
Get the form data selectors from the container, returning a dictionary mapping selector names to collections of selected elements. | |
Make a new document with the given 'name', storing it in the container and returning the document. | |
Make a new document with the given 'name', storing it in the container and returning the document. | |
Store in the container under the given 'name' the supplied document 'doc'. | |
Set the request 'parameters' (or fields) in the container. | |
Inherited from FieldProcessor | |
Complete the given 'documents' using the 'fields' items list. | |
Fill in the given 'selectors' dictionary using the given 'fields' so that it contains mappings from selector names to parts of the specified 'documents'. | |
Make a dictionary mapping model names to new documents prepared from the given 'fields' dictionary. | |
Within 'node' append an element with the given 'name'. | |
In the given 'document', extend the child elements list so that a node can be stored at the given 'index'. | |
From 'node' enter the element with the given 'name' at the given 'index' position amongst the child elements. | |
From 'node' find the element with the given 'name' at the given 'index' position amongst the child elements. | |
From 'field', return the model name and components which describe the path within the instance document associated with that model. |
Method Details |
---|
__init__(self,
*args,
**kw)
|
get_document(self, name)Get the form data document with the given 'name' from the container, returning a DOM-style document object if such a document exists, or None if no such document can be found. |
get_documents(self)Get the form data documents from the container, returning a dictionary mapping document names to DOM-style document objects. |
get_parameters(self)Get the request parameters (or fields) from the container. Note that these parameters comprise the raw form field values submitted in a request rather than the structured form data. Return a dictionary mapping parameter names to values. |
get_selector(self, name, create=0)Get the form data selectors for the given 'name', returning a collection of selected elements. If 'create' is set to a true value (unlike the default), the selected elements will be created in the form data document if not already present. |
get_selectors(self, create=0)Get the form data selectors from the container, returning a dictionary mapping selector names to collections of selected elements. If 'create' is set to a true value (unlike the default), the selected elements will be created in the form data document if not already present.
|
new_document(self, name)Make a new document with the given 'name', storing it in the container and returning the document.
|
new_instance(self, name)Make a new document with the given 'name', storing it in the container and returning the document.
|
set_document(self, name, doc)Store in the container under the given 'name' the supplied document 'doc'. |
set_parameters(self, parameters)Set the request 'parameters' (or fields) in the container. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Jan 10 23:02:11 2007 | http://epydoc.sf.net |