Provides logic for walking down XML tree and pulling data.
def google.appengine.tools.dispatch_xml_parser.DispatchXmlParser.ProcessDispatchNode |
( |
|
self, |
|
|
|
node |
|
) |
| |
Processes XML <dispatch> nodes into DispatchEntry objects.
The following information is parsed out:
url: The URL or URL pattern to route.
module: The module to route it to.
If there are no errors, the data is loaded into a DispatchEntry object
and added to a list. Upon error, a description of the error is added to
a list and the method terminates.
Args:
node: <dispatch> XML node in dos.xml.
def google.appengine.tools.dispatch_xml_parser.DispatchXmlParser.ProcessXml |
( |
|
self, |
|
|
|
xml_str |
|
) |
| |
Parses XML string and returns object representation of relevant info.
Args:
xml_str: The XML string.
Returns:
A list of DispatchEntry objects defining how URLs are dispatched to
modules.
Raises:
AppEngineConfigException: In case of malformed XML or illegal inputs.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/tools/dispatch_xml_parser.py