![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
![]() | |
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 | |
![]() | |
IN = _IN | |
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.
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.