Package caldavclientlibrary :: Package admin :: Package xmlaccounts :: Module record :: Class XMLRecord
[hide private]
[frames] | no frames]

Class XMLRecord

source code

object --+
         |
        XMLRecord

Represents a single principal record. This class can parse and generate the appropriate XML.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
parseXML(self, node)
Parse a single principal record from XML.
source code
 
_parseMembers(self, node, addto)
Parse an XML <members> or <proxies> element list.
source code
xml.etree.ElementTree.Element
writeXML(self)
Generate a single XML principal record element.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

parseXML(self, node)

source code 

Parse a single principal record from XML.

Parameters:
  • node (xml.etree.ElementTree.Element) - the XML element for the principal being parsed.

_parseMembers(self, node, addto)

source code 

Parse an XML <members> or <proxies> element list.

Parameters:
  • node (xml.etree.ElementTree.Element) - the <members> or <proxies> element to parse.
  • addto (list) - the list to add the parsed information into. The items in the list are tuples of the record type and record uid.

writeXML(self)

source code 

Generate a single XML principal record element.

Returns: xml.etree.ElementTree.Element
the root element for the principal record.