App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Static Public Member Functions | List of all members
google.appengine.ext.admin.DataType Class Reference
Inheritance diagram for google.appengine.ext.admin.DataType:
google.appengine.ext.admin.BoolType google.appengine.ext.admin.GeoPtType google.appengine.ext.admin.ImType google.appengine.ext.admin.ListType google.appengine.ext.admin.NoneType google.appengine.ext.admin.NumberType google.appengine.ext.admin.ReferenceType google.appengine.ext.admin.StringType google.appengine.ext.admin.TimeType google.appengine.ext.admin.UserType

Public Member Functions

def format
 
def short_format
 
def input_field
 
def input_field_size
 
def additional_short_value_html
 

Static Public Member Functions

def get
 
def get_by_name
 

Detailed Description

A DataType represents a data type in the datastore.

Each DataType subtype defines four methods:

   format: returns a formatted string for a datastore value
   input_field: returns a string HTML <input> element for this DataType
   name: the friendly string name of this DataType
   parse: parses the formatted string representation of this DataType
   python_type: the canonical Python type for this datastore type

We use DataType instances to display formatted values in our result lists,
and we uses input_field/format/parse to generate forms and parse the results
from those forms to allow editing of entities.

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