Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
34deeaf3 by Cédric Krier at 2024-06-07T20:42:40+02:00
Use file from the Binary field to display document

On Windows the file used to create the Evince document must be kept after the
initialization.
Also reusing the file cache mechanism of the Binary field, prevents to create
temporary files on each call of display.
Evince document needs to have the proper extension to be sure to load the
proper backend. So the cache file must be retrieved with the requested
extension.
And finally we use Document.factory_get_document_full so if leading with the
filename extension does not work, it will try to guess from the data.

Closes #13307
- - - - -
0fa5dbdb by Cédric Krier at 2024-06-07T20:44:51+02:00
Do not fail to remove temporary files at exit

On Windows PermissionError may be raised.

Closes #13308
- - - - -
1818c615 by Cédric Krier at 2024-06-07T20:45:33+02:00
Add logging when Evince can not open a document
- - - - -
190fb5c8 by Cédric Krier at 2024-06-07T20:48:09+02:00
Set EV_BACKENDS_DIR to the backends directory of evince

Closes #13309
- - - - -


4 changed files:

- tryton/bin/tryton
- tryton/tryton/common/tempfile.py
- tryton/tryton/gui/window/view_form/model/field.py
- tryton/tryton/gui/window/view_form/view/form_gtk/document.py


View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/0a0842e1b96d95bc6aedc75f37f1834d708cbebd...190fb5c8b47039b26c4870ec45c332fe6b7e5409

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/0a0842e1b96d95bc6aedc75f37f1834d708cbebd...190fb5c8b47039b26c4870ec45c332fe6b7e5409
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to