Public Member Functions | |
def | __call__ |
def | __init__ |
def | char_data |
def | data |
def | end_element |
def | folder |
def | start_element |
Public Attributes | |
datafunc | |
html | |
name | |
voice | |
Static Public Attributes | |
attr = None | |
Properties | |
data = property(data) | |
folder = property(folder) |
XML Parser helper that can dig json and html out of the feeds. The parser takes a ``Voice`` instance, page name, and function to grab data from. Calling the parser calls the data function once, sets up the ``json`` and ``html`` attributes and returns a ``Folder`` instance for the given page:: >>> o = XMLParser(voice, 'voicemail', lambda: 'some xml payload') >>> o() ... <Folder ...> >>> o.json ... 'some json payload' >>> o.data ... 'loaded json payload' >>> o.html ... 'some html payload'
def googlevoice.util.XMLParser.__init__ | ( | self, | |
voice, | |||
name, | |||
datafunc | |||
) |
def googlevoice.util.XMLParser.__call__ | ( | self | ) |
def googlevoice.util.XMLParser.char_data | ( | self, | |
data | |||
) |
def googlevoice.util.XMLParser.data | ( | self | ) |
def googlevoice.util.XMLParser.end_element | ( | self, | |
name | |||
) |
def googlevoice.util.XMLParser.folder | ( | self | ) |
def googlevoice.util.XMLParser.start_element | ( | self, | |
name, | |||
attrs | |||
) |
googlevoice::util.XMLParser::attr = None [static] |
googlevoice::util.XMLParser::data = property(data) [static] |
googlevoice::util.XMLParser::folder = property(folder) [static] |