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.db._CoercingProperty Class Reference
Inheritance diagram for google.appengine.ext.db._CoercingProperty:
google.appengine.ext.db.Property google.appengine.ext.db.CategoryProperty google.appengine.ext.db.EmailProperty google.appengine.ext.db.GeoPtProperty google.appengine.ext.db.IMProperty google.appengine.ext.db.LinkProperty google.appengine.ext.db.PhoneNumberProperty google.appengine.ext.db.PostalAddressProperty google.appengine.ext.db.RatingProperty

Public Member Functions

def validate
 
- Public Member Functions inherited from google.appengine.ext.db.Property
def __init__
 
def __property_config__
 
def __get__
 
def __set__
 
def default_value
 
def validate
 
def empty
 
def get_value_for_datastore
 
def get_updated_value_for_datastore
 
def make_value_from_datastore_index_value
 
def make_value_from_datastore
 
def datastore_type
 

Additional Inherited Members

- Public Attributes inherited from google.appengine.ext.db.Property
 verbose_name
 
 name
 
 default
 
 required
 
 validator
 
 choices
 
 indexed
 
 creation_counter
 
 model_class
 
- Static Public Attributes inherited from google.appengine.ext.db.Property
int creation_counter = 0
 
 data_type = str
 

Detailed Description

A Property subclass that extends validate() to coerce to self.data_type.

Member Function Documentation

def google.appengine.ext.db._CoercingProperty.validate (   self,
  value 
)
Coerce values (except None) to self.data_type.

Args:
  value: The value to be validated and coerced.

Returns:
  The coerced and validated value.  It is guaranteed that this is
  either None or an instance of self.data_type; otherwise an exception
  is raised.

Raises:
  BadValueError if the value could not be validated or coerced.

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