8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-16 08:23:12 +00:00
Commit graph

9 commits

Author SHA1 Message Date
detraz
bab1ca8f66 [Printer] Refactor form et url 2018-12-06 17:57:57 +01:00
Maxime Bombar
d7233a0845 [Printer] Fix major bug. See below for more explanations :
Before, I used request.session to store some information about the current jobs to be printed.
This was because in the very beginning, I had an issue with disappearing files in my model.

I was able to fix this issue in a previous commit, but I still needed the jids.
However, because of this storage system, if someone tried to print a file, then oppened a second tab,
and tried to print anoter file, he/she would pay twice for the second file ....

I decided to add a hidden field to store the job id and deal with it, and it is readonly to avoid
changing it.
2018-12-06 17:57:57 +01:00
Maxime Bombar
7da8b03e80 [Printer] Format choice is at the first step 2018-12-06 17:57:57 +01:00
Maxime Bombar
7f394b7e9c [Printer] Forgot a PrintAs field (see previous commit message) 2018-12-06 17:57:37 +01:00
Maxime Bombar
d554cff4ef Default empty label for PrintAs field is self.user.pseudo 2018-12-06 17:57:37 +01:00
Maxime Bombar
3e4b39bedb [Printer] Limit PrintAs to clubs request.user belongs to 2018-12-06 17:57:37 +01:00
Maxime Bombar
d44db64da1 [Printer] Upload file to print and manages options 2018-12-06 17:57:37 +01:00
Maxime Bombar
085a1dedf8 [Printer] Minor Fixes 2018-12-06 17:57:37 +01:00
Maxime Bombar
a5579ed2b2 Printer App a beginning. 2018-12-06 17:57:37 +01:00