![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | validate |
![]() | |
def | __init__ |
def | __property_config__ |
def | __get__ |
def | __set__ |
def | default_value |
def | validate |
def | empty |
def | get_value_for_datastore |
def | get_updated_value_for_datastore |
def | make_value_from_datastore_index_value |
def | make_value_from_datastore |
def | datastore_type |
Static Public Attributes | |
int | MAX_LENGTH = 500 |
data_type = ByteString | |
![]() | |
int | creation_counter = 0 |
data_type = str | |
Additional Inherited Members | |
![]() | |
verbose_name | |
name | |
default | |
required | |
validator | |
choices | |
indexed | |
creation_counter | |
model_class | |
A short (<=500 bytes) byte string. This type should be used for short binary values that need to be indexed. If you do not require indexing (regardless of length), use BlobProperty instead.
def google.appengine.ext.db.ByteStringProperty.validate | ( | self, | |
value | |||
) |
Validate ByteString property. Returns: A valid value. Raises: BadValueError if property is not instance of 'ByteString'.