Package Camelot :: Package camelot :: Package types :: Class Image
[frames] | no frames]

Class Image

source code


Sqlalchemy column type to store images

This column type accepts and returns a StoredImage, and stores them in the directory specified by settings.MEDIA_ROOT. The name of the file is stored as a string in the database.

The Image field type provides the same functionallity as the File field type, but the files stored should be images.

../_static/editors/ImageEditor_editable.png
Nested Classes
  stored_file_implementation
Helper class for the Image field type Class linking an image and the location and filename where the image is stored

Inherited from File: impl

Instance Methods

Inherited from File: __init__, bind_processor, result_processor

Inherited from sqlalchemy.types.TypeDecorator: __getattr__, compare_values, copy, copy_value, dialect_impl, get_col_spec, get_dbapi_type, is_mutable, load_dialect_impl, process_bind_param, process_result_value

Inherited from sqlalchemy.types.AbstractType: __repr__, adapt_operator

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__