![]() |
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 | |
constructor | |
expected_type | |
![]() | |
default | |
Additional Inherited Members | |
![]() | |
expected_type = object | |
Repeated field validator. Indicates that attribute is expected to be a repeated value, ie, a sequence. This adds additional validation over just Type(list) in that it retains information about what can be stored in the list by use of its constructor field.
def google.appengine.api.validation.Repeated.__init__ | ( | self, | |
constructor, | |||
default = None |
|||
) |
Initializer for repeated field. Args: constructor: Type used for verifying elements of sequence attribute.
def google.appengine.api.validation.Repeated.Validate | ( | self, | |
value, | |||
key | |||
) |
Do validation of sequence. Value must be a list and all elements must be of type 'constructor'. Args: value: Value to validate. key: Name of the field being validated. Raises: ValidationError: if value is None, not a list or one of its elements is the wrong type.