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.msgprop.EnumProperty Class Reference
Inheritance diagram for google.appengine.ext.ndb.msgprop.EnumProperty:
google.appengine.ext.ndb.model.IntegerProperty 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.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

Enums are represented in the datastore as integers.

While this is less user-friendly in the Datastore viewer, it matches
the representation of enums in the protobuf serialization (although
not in JSON), and it allows renaming enum values without requiring
changes to values already stored in the Datastore.

Constructor & Destructor Documentation

def google.appengine.ext.ndb.msgprop.EnumProperty.__init__ (   self,
  enum_type,
  name = None,
  default = None,
  choices = None,
  kwds 
)
Constructor.

Args:
  enum_type: A subclass of protorpc.messages.Enum.
  name: Optional datastore name (defaults to the property name).

Additional keywords arguments specify the same options as
supported by IntegerProperty.

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