Module Expr Str Import alias identifier Import alias Import alias identifier Import alias Import alias identifier ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad Str NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad orelse If BoolOpAnd Call NameLoad NameLoad AttributeLoad NameLoad attr UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list
N/A N/A Provides generic XML views

This modules defines several basic views for serializing
data to XML.  Submodels that have already been serialized
as XML may have their string values marked with `__is_xml__
= True` using :class:`openstack.common.report.utils.StringWithAttrs`
(each of the classes within this module does this automatically,
and non-naive serializers check for this attribute and handle
such strings specially)
 N/A collections col N/A copy N/A xml.etree.ElementTree ET N/A six N/A rack.openstack.common.report.utils utils KeyValueView N/A object N/A N/A A Key-Value XML View

    This view performs advanced serialization of a data model
    into XML.  It first deserializes any values marked as XML so
    that they can be properly reserialized later.  It then follows
    the following rules to perform serialization:

    key : text/xml
        The tag name is the key name, and the contents are the text or xml
    key : Sequence
        A wrapper tag is created with the key name, and each item is placed
        in an 'item' tag
    key : Mapping
        A wrapper tag is created with the key name, and the serialize is called
        on each key-value pair (such that each key gets its own tag)

    :param str wrapper_name: the name of the top-level element
     __init__ N/A N/A self wrapper_name N/A model N/A N/A N/A self wrapper_name wrapper_name N/A __call__ N/A N/A self model N/A N/A N/A cpy N/A N/A copy deepcopy model N/A N/A key valstr N/A N/A model items N/A N/A N/A getattr valstr __is_xml__ False N/A N/A N/A cpy N/A key N/A N/A ET fromstring valstr serialize N/A N/A rootmodel rootkeyname N/A N/A N/A res N/A N/A ET Element rootkeyname N/A N/A isinstance rootmodel N/A col Mapping N/A N/A key rootmodel N/A N/A N/A N/A res append N/A serialize N/A rootmodel N/A key key N/A N/A N/A N/A isinstance rootmodel N/A col Sequence N/A N/A isinstance rootmodel N/A six string_types N/A N/A val rootmodel N/A N/A N/A N/A res append N/A serialize val item N/A N/A N/A N/A ET iselement rootmodel N/A N/A N/A N/A res append rootmodel N/A N/A N/A res text N/A str rootmodel N/A res N/A N/A res N/A N/A utils StringWithAttrs N/A N/A ET tostring N/A serialize cpy N/A self wrapper_name N/A N/A res __is_xml__ True N/A res N/A N/A