org.views.files
The onegov org collection of files uploaded to the site.
Attributes
Classes
Represents an img element. |
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Stores the file given with the request and returns the new file object. |
|
|
|
|
|
|
|
|
|
|
|
Redirects to the migrated depot file if possible. As a result, old |
|
|
|
|
|
|
|
|
|
Module Contents
- class org.views.files.Img(src: str, alt: str | None = None, title: str | None = None, url: str | None = None, extra: str | None = None, width: str | None = None, height: str | None = None)[source]
Represents an img element.
- org.views.files.view_get_file_collection(self: onegov.org.models.GeneralFileCollection, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DefaultLayout | None = None) onegov.core.types.RenderData [source]
- org.views.files.view_file_details(self: onegov.org.models.GeneralFile, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DefaultLayout | None = None) str [source]
- org.views.files.handle_publish(self: onegov.org.models.GeneralFile, request: onegov.org.request.OrgRequest) None [source]
- org.views.files.handle_unpublish(self: onegov.org.models.GeneralFile, request: onegov.org.request.OrgRequest) None [source]
- org.views.files.toggle_publication(self: onegov.org.models.GeneralFile, request: onegov.org.request.OrgRequest) None [source]
- org.views.files.handle_update_publish_date(self: onegov.org.models.GeneralFile, request: onegov.org.request.OrgRequest) None [source]
- org.views.files.handle_update_start_date(layout: onegov.org.layout.DefaultLayout, request: onegov.org.request.OrgRequest, self: onegov.org.models.GeneralFile) None [source]
- org.views.files.handle_update_end_date(layout: onegov.org.layout.DefaultLayout, request: onegov.org.request.OrgRequest, self: onegov.org.models.GeneralFile) None [source]
- org.views.files.view_get_image_collection(self: BaseImageFileCollection[Any], request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DefaultLayout | None = None) onegov.core.types.RenderData [source]
- org.views.files.view_get_file_collection_json(self: onegov.org.models.GeneralFileCollection, request: onegov.org.request.OrgRequest) onegov.core.types.JSON_ro [source]
- org.views.files.view_get_image_collection_json(self: BaseImageFileCollection[Any], request: onegov.org.request.OrgRequest, produce_image: Callable[[ImageFile], Any] | None = None) list[dict[str, Any]] [source]
- org.views.files.handle_file_upload(self: FileCollection[FileT], request: onegov.org.request.OrgRequest) FileT [source]
Stores the file given with the request and returns the new file object.
- org.views.files.view_upload_file(self: onegov.file.FileCollection[FileT], request: onegov.org.request.OrgRequest, return_file: Literal[True]) FileT [source]
- org.views.files.view_upload_file(self: onegov.file.FileCollection[FileT], request: onegov.org.request.OrgRequest, return_file: Literal[False] = False) webob.Response
- org.views.files.view_upload_general_file(self: onegov.org.models.GeneralFileCollection, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DefaultLayout | None = None) str [source]
- org.views.files.view_upload_image_file(self: onegov.org.models.ImageFileCollection, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DefaultLayout | None = None) str [source]
- org.views.files.view_upload_file_by_json(self: onegov.file.FileCollection[Any], request: onegov.org.request.OrgRequest) onegov.core.types.JSON_ro [source]
- org.views.files.view_file_digest(self: onegov.org.models.GeneralFileCollection, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DefaultLayout | None = None) str [source]
- org.views.files.handle_sign(self: onegov.file.File, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DefaultLayout | None = None) str [source]
- org.views.files.view_old_files_redirect(self: onegov.org.models.LegacyFile | onegov.org.models.LegacyImage, request: onegov.org.request.OrgRequest) Response | str [source]
Redirects to the migrated depot file if possible. As a result, old image urls are preserved and will continue to function.
- org.views.files.assert_has_mtan_access(self: onegov.directory.models.directory.DirectoryFile, request: onegov.org.request.OrgRequest) None [source]
- org.views.files.view_directory_file(self: onegov.directory.models.directory.DirectoryFile, request: onegov.org.request.OrgRequest) depot.io.interfaces.StoredFile [source]
- org.views.files.view_directory_thumbnail(self: onegov.directory.models.directory.DirectoryFile, request: onegov.org.request.OrgRequest) StoredFile | Response [source]