Maintainers
This module is part of the sygel-technology/sy-server-backend project on GitHub.
You are welcome to contribute.
This module lets you call a wizard to download any file.
Table of contents
To use this module, you need to:
Create a model that inherits from file.download.model.
Override the following functions:
`get_filename`: Return the desired file name.
`get_content`: Return the binary string file to download. For example:
from io import StringIO def get_content(self): output = StringIO() file.save(output) output.seek(0) return output.read()
After this, create a wizard with a button that calls the function set_file. This function will open a new wizard with the downloadable file.
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
This module is part of the sygel-technology/sy-server-backend project on GitHub.
You are welcome to contribute.