14.3.31. crate_anon.crateweb.consent.management.commands.make_ethics_pack
crate_anon/tools/make_ethics_pack.py
Copyright (C) 2015, University of Cambridge, Department of Psychiatry. Created by Rudolf Cardinal (rnc1001@cam.ac.uk).
This file is part of CRATE.
CRATE is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
CRATE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with CRATE. If not, see <https://www.gnu.org/licenses/>.
Django management command to create a pack of PDFs for ethics submission.
For CPFT.
- class crate_anon.crateweb.consent.management.commands.make_ethics_pack.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Django management command to make an ethics pack of PDFs.
- crate_anon.crateweb.consent.management.commands.make_ethics_pack.cli_make_ethics_pack(zip_filename: str, compression: int = 8) None [source]
Make an ethics pack.
- Parameters:
zip_filename – Name of zip file to create.
compression – Type of compression to use.
- crate_anon.crateweb.consent.management.commands.make_ethics_pack.mk_developer_debug_request() HttpRequest [source]
Create a debugging HttpRequest with developer privileges.
- crate_anon.crateweb.consent.management.commands.make_ethics_pack.save_html_response_as_pdf(zipfile: ZipFile, response: HttpResponse, filename: str) None [source]
- Parameters:
zipfile – Open zip file object in which to save the PDF.
response – HTTP response with HTML contents.
filename – Filename within the zip file.
- crate_anon.crateweb.consent.management.commands.make_ethics_pack.save_pdf_response(zipfile: ZipFile, response: HttpResponse, filename: str) None [source]
- Parameters:
zipfile – Open zip file object in which to save the PDF.
response – HTTP response object with PDF contents.
filename – Filename within the zip file.