App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Static Public Attributes | List of all members
google.appengine.api.datastore_entities.GdKind Class Reference
Inheritance diagram for google.appengine.api.datastore_entities.GdKind:
google.appengine.api.datastore.Entity google.appengine.api.datastore_entities.Contact google.appengine.api.datastore_entities.Event google.appengine.api.datastore_entities.Message

Public Member Functions

def __init__
 
def ToXml
 
- Public Member Functions inherited from google.appengine.api.datastore.Entity
def __init__
 
def app
 
def namespace
 
def kind
 
def is_saved
 
def is_projection
 
def key
 
def parent
 
def entity_group
 
def unindexed_properties
 
def set_unindexed_properties
 
def __setitem__
 
def setdefault
 
def update
 
def copy
 
def ToXml
 
def ToPb
 

Static Public Attributes

string HEADER = u""
 
string FOOTER = u""
 

Additional Inherited Members

- Static Public Member Functions inherited from google.appengine.api.datastore.Entity
def FromPb
 

Detailed Description

A base class for gd namespace kinds.

This class contains common logic for all gd namespace kinds. For example,
this class translates datastore (app id, kind, key) tuples to tag:
URIs appropriate for use in <key> tags.

Constructor & Destructor Documentation

def google.appengine.api.datastore_entities.GdKind.__init__ (   self,
  kind,
  title,
  kind_properties,
  contact_properties = [] 
)
Ctor.

title is the name of this particular entity, e.g. Bob Jones or Mom's
Birthday Party.

kind_properties is a list of property names that should be included in
this entity's XML encoding as first-class XML elements, instead of
<property> elements. 'title' and 'content' are added to kind_properties
automatically, and may not appear in contact_properties.

contact_properties is a list of property names that are Keys that point to
Contact entities, and should be included in this entity's XML encoding as
<gd:who> elements. If a property name is included in both kind_properties
and contact_properties, it is treated as a Contact property.

Args:
kind: string
title: string
kind_properties: list of strings
contact_properties: list of string

Member Function Documentation

def google.appengine.api.datastore_entities.GdKind.ToXml (   self)
Returns an XML representation of this entity, as a string.

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