App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Static Public Attributes | List of all members
google.appengine.api.conf._Scalar Class Reference
Inheritance diagram for google.appengine.api.conf._Scalar:
google.appengine.api.validation.Validator

Public Member Functions

def Validate
 
- Public Member Functions inherited from google.appengine.api.validation.Validator
def __init__
 
def __call__
 
def Validate
 
def ToValue
 

Static Public Attributes

tuple ALLOWED_PARAMETER_VALUE_TYPES
 
- Static Public Attributes inherited from google.appengine.api.validation.Validator
 expected_type = object
 

Additional Inherited Members

- Public Attributes inherited from google.appengine.api.validation.Validator
 default
 

Detailed Description

Validator to check if a value is a simple scalar type.

We only allow scalars that are well supported by both the datastore and YAML.

Member Function Documentation

def google.appengine.api.conf._Scalar.Validate (   self,
  value,
  key 
)
Check that all parameters are scalar values.

This is used as a validator when parsing conf.yaml

Args:
  value: the value to check.
  key: the name of parameter corresponding to this value.

Returns:
  We just return value unchanged.

Member Data Documentation

tuple google.appengine.api.conf._Scalar.ALLOWED_PARAMETER_VALUE_TYPES
static
Initial value:
1 = frozenset(
2  [bool, int, long, float, str, unicode])

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