Trees | Index | Help |
---|
Package XSLForms :: Module Fields :: Class Form |
|
FieldProcessor
--+
|
Form
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 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 '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)
Initialise the form data container with the general 'args' and 'kw'
parameters.
|
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_selectors(self)Get the form data selectors from the container, returning a dictionary mapping selector names to collections of selected elements.
|
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 Fri Dec 9 15:06:36 2005 | http://epydoc.sf.net |