App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.tools.dispatch_xml_parser.DispatchXmlParser Class Reference
Inheritance diagram for google.appengine.tools.dispatch_xml_parser.DispatchXmlParser:

Public Member Functions

def ProcessXml
 
def ProcessDispatchNode
 

Public Attributes

 dispatch_entries
 
 errors
 

Detailed Description

Provides logic for walking down XML tree and pulling data.

Member Function Documentation

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: