Home | Trees | Indices | Help |
---|
|
object --+ | Field
Holds all the meta-information about mapping the current field value into/from the xml DOM tree.
An instance of the class specifies the exact path to the DOM node/subnode/attribute that contains the field value. It also holds other field traits such as:
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
|||
|
|
|||
path =
the path to the xml DOM node/attribute to store the field data |
|||
required = True required or optional |
|||
empty = False weither the field value could be empty (an empty XML tag) |
|||
default = None the default value for the field |
|||
values = None the list of acceptable values |
|||
save_node_and_xml = False a boolean that specifies if the original xml and DOM element should be saved. |
|
|||
Inherited from |
|
See Also: reconstruct_path |
See Also: deconstruct_path |
|
|
|
Validate data according to this fields parameters. @return True if data is ok, otherwise return a string (!) describing why the data is invalid. Note that this method returns either True or an error string, not False! The Field class considers any data as valid and returns True. |
|
|
See Also: __repr__ |
|
|
save_node_and_xmla boolean that specifies if the original xml and DOM element should be saved. Handly for fields that could contain arbitrary data such as 'merchant-private-data' and 'merchant-private-item-data'. The original xml text is saved into <field>_xml. The corresponding DOM node is stored into <field>_dom.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Sun Sep 7 23:26:44 2008 | http://epydoc.sourceforge.net |