Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now generally available.

google.appengine.datastore.datastore_index_xml.IndexesXmlParser

Provides logic for walking down XML tree and pulling data.

Inherits From: expected_type

Methods

Parse

View source

Parses XML string and returns object representation of relevant info.

Args
xml_str The XML string.

Returns
An IndexDefinitions object containing the result of parsing the XML.

Raises
ValidationError In case of malformed XML or illegal inputs.

ProcessIndexNode

View source

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.