![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | Validate |
![]() | |
def | __init__ |
def | __call__ |
def | Validate |
def | ToValue |
Public Attributes | |
expected_type | |
![]() | |
default | |
Additional Inherited Members | |
![]() | |
expected_type = object | |
Validates time values with units, such as 1h or 3.5d.
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.