|
| form_value |
|
| verbose_name |
|
| name |
|
| default |
|
| required |
|
| validator |
|
| choices |
|
| indexed |
|
| creation_counter |
|
| model_class |
|
|
| data_type = Blob |
|
int | creation_counter = 0 |
|
| data_type = str |
|
def google.appengine.ext.db.djangoforms.BlobProperty.get_form_field |
( |
|
self, |
|
|
|
kwargs |
|
) |
| |
Return a Django form field appropriate for a blob property.
This defaults to a forms.FileField instance when using Django 0.97
or later. For 0.96 this returns None, as file uploads are not
really supported in that version.
def google.appengine.ext.db.djangoforms.BlobProperty.get_value_for_form |
( |
|
self, |
|
|
|
instance |
|
) |
| |
Extract the property value from the instance for use in a form.
There is no way to convert a Blob into an initial value for a file
upload, so we always return None.
def google.appengine.ext.db.djangoforms.BlobProperty.make_value_from_form |
( |
|
self, |
|
|
|
value |
|
) |
| |
Convert a form value to a property value.
This extracts the content from the UploadedFile instance returned
by the FileField instance.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/ext/db/djangoforms.py