fobi.contrib.plugins.form_elements.content.content_image package¶
Submodules¶
fobi.contrib.plugins.form_elements.content.content_image.apps module¶
fobi.contrib.plugins.form_elements.content.content_image.conf module¶
-
fobi.contrib.plugins.form_elements.content.content_image.conf.
get_setting
(setting, override=None)[source]¶ Get a setting from
fobi.contrib.plugins.form_elements.content.content_image
conf module, falling back to the default.If override is not None, it will be used instead of the setting.
Parameters: - setting – String with setting name
- override – Value to use when no setting is available. Defaults to None.
Returns: Setting value.
fobi.contrib.plugins.form_elements.content.content_image.defaults module¶
fobi.contrib.plugins.form_elements.content.content_image.fobi_form_elements module¶
fobi.contrib.plugins.form_elements.content.content_image.forms module¶
fobi.contrib.plugins.form_elements.content.content_image.helpers module¶
-
fobi.contrib.plugins.form_elements.content.content_image.helpers.
handle_uploaded_file
(image_file)[source]¶ Parameters: image_file (django.core.files.uploadedfile.InMemoryUploadedFile) – Return string: Path to the image (relative).
-
fobi.contrib.plugins.form_elements.content.content_image.helpers.
get_crop_filter
(fit_method)[source]¶
-
fobi.contrib.plugins.form_elements.content.content_image.helpers.
delete_file
(image_file)[source]¶ Delete file from disc.
fobi.contrib.plugins.form_elements.content.content_image.settings module¶
FIT_METHOD_CROP_SMART
(string)FIT_METHOD_CROP_CENTER
(string)FIT_METHOD_CROP_SCALE
(string)FIT_METHOD_FIT_WIDTH
(string)FIT_METHOD_FIT_HEIGHT
(string)DEFAULT_FIT_METHOD
(string)FIT_METHODS_CHOICES
(tuple)FIT_METHODS_CHOICES_WITH_EMPTY_OPTION
(list)IMAGES_UPLOAD_DIR
(string)