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.indexes_xml_parser.IndexesXmlParser Class Reference
Inheritance diagram for google.appengine.tools.indexes_xml_parser.IndexesXmlParser:

Public Member Functions

def ProcessXml
 
def ProcessIndexNode
 

Public Attributes

 indexes
 
 errors
 

Detailed Description

Provides logic for walking down XML tree and pulling data.

Member Function Documentation

def google.appengine.tools.indexes_xml_parser.IndexesXmlParser.ProcessIndexNode (   self,
  node 
)
Processes XML <datastore-index> nodes into Index objects.

The following information is parsed out:
kind: specifies the kind of entities to index.
ancestor: true if the index supports queries that filter by
  ancestor-key to constraint results to a single entity group.
property: represents the entity properties to index, with a name
  and direction attribute.

Args:
  node: <datastore-index> XML node in datastore-indexes.xml.
def google.appengine.tools.indexes_xml_parser.IndexesXmlParser.ProcessXml (   self,
  xml_str 
)
Parses XML string and returns object representation of relevant info.

Args:
  xml_str: The XML string.
Returns:
  A list of Index objects containing information about datastore indexes
  from the XML.
Raises:
  AppEngineConfigException: In case of malformed XML or illegal inputs.

The documentation for this class was generated from the following file: