8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-24 20:33:11 +00:00
Commit graph

2347 commits

Author SHA1 Message Date
Maxime Bombar
24a7895566 [Printer] remove garbage comments 2018-12-06 17:57:57 +01:00
Maxime Bombar
d945dd013d [Printer] Handles submission of empty files 2018-12-06 17:57:57 +01:00
Maxime Bombar
8656f6dcf3 [Printer] Refactor frontend of printer interface (1st step) 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
511eb2d7a1 [Printer] Resize 'Add file' button 2018-12-06 17:57:57 +01:00
Maxime Bombar
a3cc9857e2 [Printer] Remove unused sr-only to display field labels in template 2018-12-06 17:57:57 +01:00
Maxime Bombar
641073e0a6 [Printer] Prevent printer interface from crashing when adding a new file 2018-12-06 17:57:57 +01:00
Maxime Bombar
f74c50c3df [Printer] Make 'Add file' button not editable 2018-12-06 17:57:57 +01:00
Maxime Bombar
c431771b93 [Printer][re2o] Allow to disable printer directly from 'Preference' menu 2018-12-06 17:57:57 +01:00
Maxime Bombar
6e7c3bfc55 [Printer] Move Options Available from models to settings 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
d3048fdd5f [Printer][Preferences] Put Printer Options into Preferences database 2018-12-06 17:57:57 +01:00
Maxime Bombar
62aef50c08 [Printer] Prevent crashing when no file is given 2018-12-06 17:57:37 +01:00
Maxime Bombar
3a3f2e0797 [Printer] Rename 'Advanced Options' in 'Next' 2018-12-06 17:57:37 +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
a01ff3b88f [Printer] Propagate correctly ValidationError 2018-12-06 17:57:37 +01:00
Maxime Bombar
1891654756 [API/Printer] Service needs number of pages 2018-12-06 17:57:37 +01:00
Maxime Bombar
4acb118268 [Printer] Handles accentted filenames 2018-12-06 17:57:37 +01:00
Maxime Bombar
5aa0dd867e [Printer] Function to create a booklet from a pdf 2018-12-06 17:57:37 +01:00
Maxime Bombar
9cda39a1fe [Printer] Specify in the Invoice who requested the printing 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
909c378c3f [Api/printer] API endpoints for printer 2018-12-06 17:57:37 +01:00
Maxime Bombar
d3d64c62fb Change default storage for uploaded files 2018-12-06 17:57:37 +01:00
Maxime Bombar
69c7140911 [Printer] History jobs in API 2018-12-06 17:57:37 +01:00
Maxime Bombar
cc447ba622 [Printer/models] Dummy ACL 2018-12-06 17:57:37 +01:00
Maxime Bombar
1bb39f25ff View for printer in API 2018-12-06 17:57:37 +01:00
Maxime Bombar
3e62cb852f Printer : Add url for printer in API 2018-12-06 17:57:37 +01:00
Maxime Bombar
4ffe0a2c63 [Printer] Update serializer 2018-12-06 17:57:37 +01:00
Maxime Bombar
361da6bce9 [api] Serializer for printer job. Beginning, it's late 2018-12-06 17:57:37 +01:00
Maxime Bombar
c16655b7a4 s/teh/the 2018-12-06 17:57:37 +01:00
Maxime Bombar
71831c1483 [Printer] Add new Job status 2018-12-06 17:57:37 +01:00
Maxime Bombar
5c4c56244c Move printing_path from models to utils 2018-12-06 17:57:37 +01:00
Maxime Bombar
00db1392db [Printer] Create payment & invoice 2018-12-06 17:57:37 +01:00
Maxime Bombar
4552fcceea [Printer] Populate printAs with request.user if None 2018-12-06 17:57:37 +01:00
Maxime Bombar
0d2cce2488 set FILE_UPLOAD_MAX_MEMORY_SIZE = 0 for printer app 2018-12-06 17:57:37 +01:00
Maxime Bombar
eb001132a8 Printer app needs poppler-utils 2018-12-06 17:57:37 +01:00
Maxime Bombar
39cddb2cb5 Compute job price 2018-12-06 17:57:37 +01:00
Maxime Bombar
ba6cc23fed Price is a decimal field 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
32b668ac85 [Printer] Move printer urlpatterns into optional urls 2018-12-06 17:57:37 +01:00
Maxime Bombar
3468efeb9d [printer] Add context_processors in settings.py 2018-12-06 17:57:37 +01:00
Maxime Bombar
2c4dc22b31 [printer] New migration 2018-12-06 17:57:37 +01:00
Maxime Bombar
ae58b88707 Printer app really is optionnal 2018-12-06 17:57:37 +01:00
Maxime Bombar
e249d5b233 Login is required to use the printer 2018-12-06 17:57:37 +01:00
Maxime Bombar
7b09c93d09 Printer is an optional app 2018-12-06 17:57:37 +01:00
Maxime Bombar
b0f9f70deb [printer] Update settings.py (temporary) 2018-12-06 17:57:37 +01:00
Maxime Bombar
085a1dedf8 [Printer] Minor Fixes 2018-12-06 17:57:37 +01:00
Maxime Bombar
e1dfa5dce8 printer/migrations 2018-12-06 17:57:37 +01:00
Maxime Bombar
a5579ed2b2 Printer App a beginning. 2018-12-06 17:57:37 +01:00