App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.ext.ndb.polymodel._ClassKeyProperty Class Reference
Inheritance diagram for google.appengine.ext.ndb.polymodel._ClassKeyProperty:
google.appengine.ext.ndb.model.StringProperty google.appengine.ext.ndb.model.TextProperty google.appengine.ext.ndb.model.BlobProperty google.appengine.ext.ndb.model.Property google.appengine.ext.ndb.model.ModelAttribute

Public Member Functions

def __init__
 
- Public Member Functions inherited from google.appengine.ext.ndb.model.BlobProperty
def __init__
 
- Public Member Functions inherited from google.appengine.ext.ndb.model.Property
def __init__
 
def __repr__
 
def __eq__
 
def __ne__
 
def __lt__
 
def __le__
 
def __gt__
 
def __ge__
 
def __neg__
 
def __pos__
 
def __get__
 
def __set__
 
def __delete__
 

Additional Inherited Members

- Static Public Attributes inherited from google.appengine.ext.ndb.model.Property
 IN = _IN
 

Detailed Description

Property to store the 'class key' of a polymorphic class.

The class key is a list of strings describing a polymorphic entity's
place within its class hierarchy.  This property is automatically
calculated.  For example:

  class Foo(PolyModel): ...
  class Bar(Foo): ...
  class Baz(Bar): ...

  Foo().class_ == ['Foo']
  Bar().class_ == ['Foo', 'Bar']
  Baz().class_ == ['Foo', 'Bar', 'Baz']

Constructor & Destructor Documentation

def google.appengine.ext.ndb.polymodel._ClassKeyProperty.__init__ (   self,
  name = _CLASS_KEY_PROPERTY,
  indexed = True 
)
Constructor.

If you really want to you can give this a different datastore name
or make it unindexed.  For example:

  class Foo(PolyModel):
class_ = _ClassKeyProperty(indexed=False)

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