Home | Trees | Indices | Help |
|
---|
|
xmltodict(): convert xml into tree of Python dicts. This was copied and modified from John Bair's recipe at aspn.activestate.com: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/149368
|
|||
Xml2Obj XML to Object |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
code_linesep = "\n"
|
|||
eol = os.linesep
|
|
Given a Python dictionary, return an xml string. The dictionary must be in the format returned by dicttoxml(), with keys on "attributes", "code", "cdata", "name", and "children". Send your own XML header, otherwise a default one will be used. The linesep argument is a dictionary, with keys on levels, allowing the developer to add extra whitespace depending on the level. |
Given a dict containing a series of nested objects such as would be created by restoring from a cdxml file, returns a dict with all classIDs as keys, and a dict as the corresponding value. The dict value will have keys for the attributes and/or code, depending on what was in the original dict. The end result is to take a nested dict structure and return a flattened dict with all objects at the top level. |
Called recursively on the class container structure, modifying the attributes to incorporate superclass information. When the 'updateCode' parameter is True, superclass code is added to the object's code |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jul 15 13:14:16 2011 | http://epydoc.sourceforge.net |