Trees | Index | Help |
---|
Package XSLForms :: Module Fields :: Class FieldProcessor |
|
Form
Method Summary | |
---|---|
Initialise the fields processor with the given 'encoding', which is optional and which only applies to field data in Python string form (and not Unicode objects). | |
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'. | |
Get a dictionary containing a mapping of selector names to selected parts of the given 'documents'. | |
Make a dictionary mapping model names to new documents prepared from the given 'fields' dictionary. | |
Return an instance root of the given 'name' in a new document. | |
Return an instance root of the given 'name' in a new document. |
Method Details |
---|
__init__(self,
encoding='utf-8',
values_are_lists=0)
|
complete_documents(self, documents, fields)Complete the given 'documents' using the 'fields' items list. |
complete_selectors(self, selectors, fields, documents, create)Fill in the given 'selectors' dictionary using the given 'fields' so that it contains mappings from selector names to parts of the specified 'documents'. If 'create' is set to a true value, selected elements will be created if not already present; otherwise, ignore such selectors. |
get_selectors(self, fields, documents, create=0)Get a dictionary containing a mapping of selector names to selected parts of the given 'documents'. If 'create' is set to a true value, selected elements will be created if not already present. |
make_documents(self, fields)Make a dictionary mapping model names to new documents prepared from the given 'fields' dictionary. |
new_document(self, name)Return an instance root of the given 'name' in a new document. |
new_instance(self, name)Return an instance root of the given 'name' in a new document. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Mar 13 20:09:25 2006 | http://epydoc.sf.net |