django-restit 4.2.127__py3-none-any.whl → 4.2.128__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {django_restit-4.2.127.dist-info → django_restit-4.2.128.dist-info}/METADATA +1 -1
- {django_restit-4.2.127.dist-info → django_restit-4.2.128.dist-info}/RECORD +7 -7
- incident/models/incident.py +5 -0
- medialib/models.py +2 -1
- rest/__init__.py +1 -1
- {django_restit-4.2.127.dist-info → django_restit-4.2.128.dist-info}/LICENSE.md +0 -0
- {django_restit-4.2.127.dist-info → django_restit-4.2.128.dist-info}/WHEEL +0 -0
@@ -114,7 +114,7 @@ incident/migrations/0015_rule_title_template_alter_incident_state.py,sha256=FPUD
|
|
114
114
|
incident/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
115
115
|
incident/models/__init__.py,sha256=NMphuhb0RTMf7Ov4QkNv7iv6_I8Wtr3xQ54yjX_a31M,209
|
116
116
|
incident/models/event.py,sha256=LNKYdqOj_CO4aGvc2dNmy3K-S52Udi_gZ4-wintbs1s,7901
|
117
|
-
incident/models/incident.py,sha256=
|
117
|
+
incident/models/incident.py,sha256=_pzAyUC-RgwrCF-hOIOUDLhdG9koTqZK8pOltBZx48o,21143
|
118
118
|
incident/models/ossec.py,sha256=eUDRGawzuLWobKEVGKfdZisDnyjS_Hlxi0T_GCSLCCI,2252
|
119
119
|
incident/models/rules.py,sha256=aRkJ0ZnTv87nAUC1sHVkPExfb3OJ8fgHQIhnCIpIbhQ,7001
|
120
120
|
incident/models/ticket.py,sha256=S3kqGQpYLE6Y4M9IKu_60sgW-f592xNr8uufqHnvDoU,2302
|
@@ -173,7 +173,7 @@ medialib/fixtures/medialib_test_fixture.json,sha256=7M7zvGI2S5G3ENV8OQ3Ks4149lEi
|
|
173
173
|
medialib/forms.py,sha256=nrE6QTPNPiIeX7Nx4l9DEmAQeQXqFyCg1C3JEDBYJfE,5442
|
174
174
|
medialib/migrations/0001_initial.py,sha256=H3JliH5aw7tiHef8MhrJr_9rGetqgA7UjTF-eKziRSM,20518
|
175
175
|
medialib/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
176
|
-
medialib/models.py,sha256=
|
176
|
+
medialib/models.py,sha256=CrTS5znW8JMuj8gaAnJ5boYvN-deF8zyOuCmW3cFQVE,52228
|
177
177
|
medialib/ocr.py,sha256=zlP7-NBiXhW7jR9pljmEPl5xzLVZpLN5QLAELQgU0Fk,1189
|
178
178
|
medialib/pdf.py,sha256=l28WwM0JKbT9boV-b_9TFh9jhvGcrquR8GqC8wfEaLk,1275
|
179
179
|
medialib/qrcode.py,sha256=vHyA5egXOX70EFiUDgr1njI9zcF6bXQJ_hKAQrppRow,545
|
@@ -376,7 +376,7 @@ pushit/utils.py,sha256=IeTCGa-164nmB1jIsK1lu1O1QzUhS3BKfuXHGjCW-ck,2121
|
|
376
376
|
rest/.gitignore,sha256=TbEvWRMnAiajCTOdhiNrd9eeCAaIjRp9PRjE_VkMM5g,118
|
377
377
|
rest/README.md,sha256=V3ETc-cJu8PZIbKr9xSe_pA4JEUpC8Dhw4bQeVCDJPw,5460
|
378
378
|
rest/RemoteEvents.py,sha256=nL46U7AuxIrlw2JunphR1tsXyqi-ep_gD9CYGpYbNgE,72
|
379
|
-
rest/__init__.py,sha256=
|
379
|
+
rest/__init__.py,sha256=GztWl-MikBJXtn-Tqs0kfE5M-LEleKPzMBuQycrIO4w,122
|
380
380
|
rest/arc4.py,sha256=y644IbF1ec--e4cUJ3KEYsewTCITK0gmlwa5mJruFC0,1967
|
381
381
|
rest/cache.py,sha256=1Qg0rkaCJCaVP0-l5hZg2CIblTdeBSlj_0fP6vlKUpU,83
|
382
382
|
rest/crypto/__init__.py,sha256=Tl0U11rgj1eBYqd6OXJ2_XSdNLumW_JkBZnaJqI6Ldw,72
|
@@ -511,7 +511,7 @@ ws4redis/servers/uwsgi.py,sha256=VyhoCI1DnVFqBiJYHoxqn5Idlf6uJPHvfBKgkjs34mo,172
|
|
511
511
|
ws4redis/settings.py,sha256=K0yBiLUuY81iDM4Yr-k8hbvjn5VVHu5zQhmMK8Dtz0s,1536
|
512
512
|
ws4redis/utf8validator.py,sha256=S0OlfjeGRP75aO6CzZsF4oTjRQAgR17OWE9rgZdMBZA,5122
|
513
513
|
ws4redis/websocket.py,sha256=R0TUyPsoVRD7Y_oU7w2I6NL4fPwiz5Vl94-fUkZgLHA,14848
|
514
|
-
django_restit-4.2.
|
515
|
-
django_restit-4.2.
|
516
|
-
django_restit-4.2.
|
517
|
-
django_restit-4.2.
|
514
|
+
django_restit-4.2.128.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
|
515
|
+
django_restit-4.2.128.dist-info/METADATA,sha256=4024f0T-AL9SvYKoCvIOuU4pPOKzCudxdtGTZWIKS2M,7663
|
516
|
+
django_restit-4.2.128.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
517
|
+
django_restit-4.2.128.dist-info/RECORD,,
|
incident/models/incident.py
CHANGED
@@ -33,6 +33,8 @@ INCIDENT_STATES = [
|
|
33
33
|
(INCIDENT_STATE_PENDING, "pending"),
|
34
34
|
]
|
35
35
|
|
36
|
+
INCIDENT_STATE_DISPLAYS = {k:v for k,v in INCIDENT_STATES}
|
37
|
+
|
36
38
|
INCIDENT_EMAIL_FROM = settings.get("INCIDENT_EMAIL_FROM", None)
|
37
39
|
if INCIDENT_EMAIL_FROM is None:
|
38
40
|
INCIDENT_EMAIL_FROM = f"{settings.SITE_LABEL} INCIDENT <incident@{settings.EMAIL_DEFAULT_DOMAIN}>"
|
@@ -391,6 +393,9 @@ class Incident(models.Model, rm.RestModel, rm.MetaDataModel):
|
|
391
393
|
notes = []
|
392
394
|
for k, v in self._changed__.items():
|
393
395
|
nv = self.getFieldValue(k)
|
396
|
+
if k == "state":
|
397
|
+
v = INCIDENT_STATE_DISPLAYS.get(v, v)
|
398
|
+
nv = INCIDENT_STATE_DISPLAYS.get(nv, nv)
|
394
399
|
notes.append(f"{k} changed from {v} to {nv}")
|
395
400
|
note = "\n<br>".join(notes)
|
396
401
|
|
medialib/models.py
CHANGED
@@ -519,7 +519,8 @@ class MediaItem(models.Model, RestModel, MetaDataModel):
|
|
519
519
|
self.deleteRenditions()
|
520
520
|
except Exception as err:
|
521
521
|
logger.exception(err)
|
522
|
-
raise Exception(err)
|
522
|
+
# raise Exception(err)
|
523
|
+
# Generate Event
|
523
524
|
|
524
525
|
def guessKind(self):
|
525
526
|
filename = self.name
|
rest/__init__.py
CHANGED
File without changes
|
File without changes
|