Helper function for validating that an iterable object only contains allowed types.
Parameters: |
|
---|
Helper function for checking if a key is in a map
Parameters: |
|
---|
Helper function for checking a variable’s type
Parameters: |
|
---|
A method for converting properties to appropriate formats. Currently just covers dates (bools handled elsewhere)
Parameters: |
|
---|---|
Returns: | a property value that has been converted to the appropriate type. |
Return type: | bool|float|datetime|str|unicode |
Parameters: |
|
---|---|
Returns: | A dictionary defining a nodeclass |
Return type: | Collections.defaultdict(dict) |
Parameters: |
|
---|---|
Returns: | dict, Collections.defaultdict(node_tuple) |
Reads in a dictionary of properties and converts it to a properties tag
Parameters: | properties_dict – a dictionary of properties |
---|---|
Returns: | A <properties> tag |
Return type: | lxml._Element |
Reads in a propertyIdentities tag and converts it to a dictionary of property identities
Parameters: |
|
---|---|
Returns: | A dictionary of property identities, or an empty dictionary |
Return type: | dict |
Reads a dictionary of Property Identities and converts it to a propertyIdentities tag
Parameters: | property_identities_dict (dict) – a dictionary containing propertyIndentity values |
---|---|
Returns: | a propertyIdentities tag |
Return type: | lxml._Element |
Returns: | The default dict that define |
---|---|
Return type: | defaultdict(nodeclass_dict) |
Returns: | The tuple that defines a node |
---|---|
Return type: | tuple_(dict, dict) |
Returns: | The defaultdict that defines a nodeclass |
---|---|
Return type: | defaultdict(nodeset_tuple) |
Returns: | The tuple that defines a nodeset |
---|---|
Return type: | tuple_(dict, defaultdict(node_tuple)) |
A method for un-formatting properties back to strings. Currently covers dates and bools.
Parameters: | prop – a property storied in a properties dictionary, of unknown type. |
---|---|
Returns: | the property value transformed to a string containing equivalent dynetml contents |
Return type: | unicode or str |