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.api.validation.TimeValue Class Reference
Inheritance diagram for google.appengine.api.validation.TimeValue:
google.appengine.api.validation.Validator

Public Member Functions

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

Public Attributes

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

Additional Inherited Members

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

Detailed Description

Validates time values with units, such as 1h or 3.5d.

Member Function Documentation

def google.appengine.api.validation.TimeValue.Validate (   self,
  value,
  key 
)
Validate a time value.

Args:
  value: Value to validate.
  key: Name of the field being validated.

Raises:
  ValidationError: if value is not a time value with the expected format.

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