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

Public Member Functions

def __init__
 
def __enter__
 
def __exit__
 
def pb_to_key
 
def key_to_pb
 
def pb_to_entity
 
def entity_to_pb
 
def pb_to_index
 

Public Attributes

 default_model
 
 want_pbs
 

Detailed Description

Conversions between 'our' Key and Model classes and protobufs.

This is needed to construct a Connection object, which in turn is
needed to construct a Context object.

See the base class docstring for more info about the signatures.

Constructor & Destructor Documentation

def google.appengine.ext.ndb.model.ModelAdapter.__init__ (   self,
  default_model = None 
)
Constructor.

Args:
  default_model: If an implementation for the kind cannot be found, use
this model class.  If none is specified, an exception will be thrown
(default).

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