-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviews.comics.org/r/1025/
-----------------------------------------------------------
Review request for GGD Tech Group.
Summary
-------
These are the model changes and the OI code to allow a generic image handling. An image can be associated to any other object. We control which kind of relationships we allow in the OI, this is done via an ImageType model where we set things up.
On the objects we can (but don't need to) add properties to access the images. If there would be only one kind of picture per object, one could do that as a reverse generic relation, but the queries would be the same anyway. And this way, we can filter out deleted images directly without a second step.
The OI code is based to a big degree on the cover code. But we are using now the ImageField model, which makes processing and saving of images easier. Also we use the external ImageKits library, which makes generating other sizes on the fly (with cache) very easy.
Added data for indicia and statement of ownership for issues. Can do similar things for other objects, mainly thinking of brands at this stage.
The display code will follow later.
Diffs
-----
/pydjango/apps/oi/covers.py 1482
/pydjango/apps/oi/forms.py 1482
/pydjango/apps/oi/models.py 1482
/pydjango/apps/oi/urls.py 1482
/pydjango/apps/oi/views.py 1482
/pydjango/apps/gcd/models/issue.py 1482
/pydjango/apps/gcd/views/covers.py 1482
/pydjango/apps/gcd/fixtures/imagetype.yaml PRE-CREATION
/pydjango/apps/gcd/models/__init__.py 1482
/pydjango/apps/gcd/models/image.py PRE-CREATION
/pydjango/settings.py 1482
/pydjango/templates/oi/edit/compare_cover.html 1482
/pydjango/templates/oi/edit/compare_image.html PRE-CREATION
/pydjango/templates/oi/edit/upload_image.html PRE-CREATION
Diff: http://reviews.comics.org/r/1025/diff
Testing
-------
Tested locally, will put on beta for testing once the display code is finished.
Thanks,
Jochen