timApp.document.minutes package
Contents
timApp.document.minutes package#
Submodules#
timApp.document.minutes.routes module#
Routes related to handling faculty council documents, such as meeting invitations and minutes
- class timApp.document.minutes.routes.MergeAttachmentsModel(urls: list[str], doc_id: int)[source]#
Bases:
object
- doc_id: int#
- urls: list[str]#
- timApp.document.minutes.routes.create_minute_extracts(doc: str) flask.wrappers.Response [source]#
A route for creating extracts of faculty council minutes.
- Parameters
doc –
- Returns
- timApp.document.minutes.routes.create_minutes_route() flask.wrappers.Response [source]#
Creates a base document for minutes from an IT faculty council meeting invitation. :return: A web response for the new document.
- timApp.document.minutes.routes.create_or_get_and_wipe_document(path: str, title: str) timApp.document.docinfo.DocInfo [source]#
Creates a document to the given path and returns the DocEntry. If a document already exists in the given path, the already existing document is wiped clean and then its DocEntry is returned.
- Parameters
path – The path to the document.
title – The title of the document.
- Returns
The DocEntry of a new document or an already existing document that has been wiped clean.
- timApp.document.minutes.routes.get_attachment_list(doc: str) flask.wrappers.Response [source]#
Gets the list of all attachments in the document, their macro-types, possible errors, and whether they are selected by default.
- Parameters
doc –
- Returns
List of Attachment objects.
- timApp.document.minutes.routes.merge_selected_attachments(args: timApp.document.minutes.routes.MergeAttachmentsModel) flask.wrappers.Response [source]#
A route for merging a list of urls.
:param args Doc id and list of pdf paths. :return: URL for the GET-route to open the merged file.
- timApp.document.minutes.routes.open_merged_file(args: timApp.document.minutes.routes.MergeAttachmentsModel) flask.wrappers.Response [source]#
Open a merged file.
:param args Doc id and list of pdf urls used in the merge. :return: Opens the file in the browser.