org.models.legacy_file

Contains the legacy models of files for url redirect support. Going forward, onegov.file and onegov.org.models.file is used.

Classes

LegacyFileCollection

LegacyImageCollection

LegacyFile

A filestorage file that points to an uploaded image or file.

LegacyImage

A filestorage file that points to a full image (not a thumbnail).

Module Contents

class org.models.legacy_file.LegacyFileCollection(app: onegov.org.app.OrgApp)[source]
path_prefix = 'files/'[source]
file_storage[source]
get_file_by_filename(filename: str) LegacyFile | None[source]
class org.models.legacy_file.LegacyImageCollection(app: onegov.org.app.OrgApp)[source]
path_prefix = 'images/'[source]
file_storage[source]
get_file_by_filename(filename: str) LegacyImage | None[source]
class org.models.legacy_file.LegacyFile(filename: str, info: dict[str, Any] | None = None)[source]

Bases: onegov.core.filestorage.FilestorageFile

A filestorage file that points to an uploaded image or file.

filename[source]
info[source]
property date: date_t | None[source]
property path: str[source]
property original_name: bytes | None[source]
classmethod from_url(url: str) typing_extensions.Self[source]
class org.models.legacy_file.LegacyImage(filename: str, info: dict[str, Any] | None = None)[source]

Bases: LegacyFile

A filestorage file that points to a full image (not a thumbnail).

property path: str[source]