Commit Graph

430 Commits

Author SHA1 Message Date
Matthias 586812e5c6
add doc for generic mixin 2022-04-05 00:23:09 +02:00
Matthias 23f57bec19
some docs for future users :-) 2022-04-05 00:15:22 +02:00
Matthias 205916e0b2
refactor clean method to reduce duplication 2022-04-05 00:14:39 +02:00
Matthias 8d01df0b5e
refactor settings to reduce duplication 2022-04-05 00:08:07 +02:00
Matthias 138aebdb08
and another one 2022-04-04 23:52:00 +02:00
Matthias e3ca478042
PEP fix 2022-04-04 23:51:51 +02:00
Matthias 1eb511e8a0
user notification settings 2022-04-04 23:46:19 +02:00
Matthias 926f56bb41
move plugins checks to method 2022-04-02 04:11:29 +02:00
Matthias 6a300ea24a
fix global settings check 2022-04-02 03:32:27 +02:00
Matthias 6124b1207d
make setting global 2022-04-02 03:16:14 +02:00
Matthias c7329da7e0
move settings 2022-04-02 03:03:41 +02:00
Matthias 279be87448
Move email notification method into plugin
Fixes #2385
2022-04-02 02:46:41 +02:00
Oliver Walters e18493a397 Supply label width and height to the label printing plugin 2022-03-26 13:43:48 +11:00
Oliver Walters 3e484317d2 Register notification against the plugin class, not the particular label 2022-03-25 23:49:15 +11:00
Oliver 6e30ec5603 PEP fix 2022-03-25 16:42:20 +11:00
Oliver 052d9770ce Override view permissions for plugin list API
- It is necessary for *any* logged in user to view this endpoint
- This is how the user determines which plugins are available (e.g. for label printing!)
2022-03-25 16:39:43 +11:00
Oliver 9046c74628 Only send printing failed as a UI notification 2022-03-25 16:05:35 +11:00
Oliver c1b408f8a3 Send notification if printing fails
If label printing fails (due to a plugin error) then the user is notified.
2022-03-25 15:57:32 +11:00
Oliver 5ee9af7f0e Remove old "get_filters" function
- It was confusing!
- Manually filter where required
2022-03-25 14:10:05 +11:00
Oliver fcdd1eb55b Remove old function call 2022-03-24 16:18:50 +11:00
Oliver efc6af5f4c PEP fixes 2022-03-24 16:18:08 +11:00
Oliver 6c25a5805d Allow offloading of label printing to the configured plugin 2022-03-24 14:57:01 +11:00
Oliver 86b5655c5f Simplify new plugin class 2022-03-24 13:15:57 +11:00
Oliver 4e041e97b9 Catch potential IntegrityError when importing plugins 2022-03-24 13:00:03 +11:00
Oliver 69e9d1625a Adds a LabelPrintingMixin plugin class
- Enables the implementation of custom label printing plugins
- Will be available directly from the "print labels" dialog box
2022-03-24 12:51:27 +11:00
Oliver c082cec3ee
Merge pull request #2748 from matmair/matmair/issue2524
Run plugin install on startup
2022-03-21 07:15:37 +11:00
Matthias eef51600c5
do not write to db 2022-03-20 18:10:42 +01:00
Matthias 494c4ed03d
only raise if integrity error 2022-03-18 23:58:17 +01:00
Matthias e53e428a32
remove unneeded print 2022-03-18 23:50:13 +01:00
Matthias Mair 0cd8aae250
raise blocker again 2022-03-18 07:50:02 +01:00
Matthias Mair a1791645fa
just raise 2022-03-18 02:19:32 +01:00
Matthias d32952fe23
add another debug message 2022-03-18 01:43:42 +01:00
Matthias a06844d7e9
add additional debug messges 2022-03-18 00:46:37 +01:00
Matthias 3606bd8fe4
add try to settings test 2022-03-16 17:03:04 +01:00
Matthias Mair 57df39086c
Merge branch 'inventree:master' into fix-set_user 2022-03-16 15:16:26 +01:00
Matthias Mair 91464ad3d0
Merge branch 'inventree:master' into matmair/issue2524 2022-03-16 15:15:27 +01:00
Matthias 8f10ef817c
add setting for reload 2022-03-16 14:47:27 +01:00
Matthias 51860a4e7b
run with u flag 2022-03-15 01:33:01 +01:00
Matthias 5f9a549918
docs 2022-03-15 01:27:14 +01:00
Matthias e398d64885
just use the setting 2022-03-15 01:25:52 +01:00
Matthias d9d2f39072
just run install 2022-03-15 01:24:58 +01:00
Matthias 38938e892b
[FR] [Plugin] Check if all plugins are really installed
Fixes #2524
2022-03-14 23:50:09 +01:00
Matthias ce9bbb4f2e
add plug back in 2022-03-13 22:36:07 +01:00
Matthias c5047e8779
remove new helper 2022-03-13 22:35:14 +01:00
Matthias 4e6c5f90f7
plug do_raise for enviroment var manipulating 2022-03-13 21:36:55 +01:00
Matthias 3b642695a8
PEP fix 2022-03-13 21:11:06 +01:00
Matthias 5f9f5555b6
ignore depreciated function in coverage 2022-03-13 21:01:16 +01:00
Matthias 080ee2ea50
remove dead code 2022-03-13 20:58:40 +01:00
Matthias b1a3445338
ignore coverage for points that only gets reached by deadly broken plugins 2022-03-13 20:57:25 +01:00
Matthias a3d0dcb5bb
only applicable in mulithread enviroments 2022-03-13 20:56:36 +01:00