littleq0903 / appengine-admin

Automatically exported from code.google.com/p/appengine-admin
0 stars 0 forks source link

Support for BlobProperty #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
CRUD for photos and pictures.

Original issue reported on code.google.com by valdiic on 27 Nov 2008 at 12:52

GoogleCodeExporter commented 9 years ago

Original comment by valdiic on 27 Nov 2008 at 1:08

GoogleCodeExporter commented 9 years ago
Basic BlobProperty support added by aabele in r60 
(http://code.google.com/p/appengine-admin/source/detail?r=60)

Original comment by valdiic on 13 Jan 2009 at 3:14

GoogleCodeExporter commented 9 years ago
Added download link support for BlobProperty in r61

Original comment by valdiic on 13 Jan 2009 at 5:00

GoogleCodeExporter commented 9 years ago
Added uploaded file meta info storage option.
Meta info is stored in additional field in the same model using
<blobPropertyFieldName>_meta as field name by default if such field exists. If 
meta
data is stored about the uploaded file the file name will be shown in Appengine 
Admin
user interface. File name and file mime type will be used when getting file 
contents.

Original comment by valdiic on 1 Feb 2009 at 9:39

GoogleCodeExporter commented 9 years ago
Thumbnail generation for uploaded images taken out of scope as the BlobProperty 
is
completely usable having current functionality.
Thumbnail support for uploaded images is submitted as issue #12

Original comment by valdiic on 1 Feb 2009 at 9:45

GoogleCodeExporter commented 9 years ago
Correction:
Meta info about BlobProperty also must be stored in BlobProperty field.
Code:
{{{
class MyModel(db.Model):
    blobField = db.BlobProperty()
    blobField_meta = db.BlobProperty()
}}}

Original comment by valdiic on 1 Feb 2009 at 9:57