django-restit 4.2.176__tar.gz → 4.2.179__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (524) hide show
  1. {django_restit-4.2.176 → django_restit-4.2.179}/PKG-INFO +1 -1
  2. {django_restit-4.2.176 → django_restit-4.2.179}/account/models/group.py +1 -0
  3. {django_restit-4.2.176 → django_restit-4.2.179}/account/models/member.py +7 -1
  4. {django_restit-4.2.176 → django_restit-4.2.179}/account/rpc/auth.py +2 -1
  5. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/utils/parsing.py +3 -2
  6. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/utils/render.py +10 -3
  7. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/models.py +4 -7
  8. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/client.py +3 -4
  9. {django_restit-4.2.176 → django_restit-4.2.179}/pyproject.toml +1 -1
  10. {django_restit-4.2.176 → django_restit-4.2.179}/rest/__init__.py +1 -1
  11. django_restit-4.2.179/rest/filetypes.py +128 -0
  12. {django_restit-4.2.176 → django_restit-4.2.179}/rest/mail.py +3 -2
  13. {django_restit-4.2.176 → django_restit-4.2.179}/rest/models/base.py +3 -3
  14. {django_restit-4.2.176 → django_restit-4.2.179}/LICENSE.md +0 -0
  15. {django_restit-4.2.176 → django_restit-4.2.179}/README.md +0 -0
  16. {django_restit-4.2.176 → django_restit-4.2.179}/account/__init__.py +0 -0
  17. {django_restit-4.2.176 → django_restit-4.2.179}/account/admin.py +0 -0
  18. {django_restit-4.2.176 → django_restit-4.2.179}/account/fcm/__init__.py +0 -0
  19. {django_restit-4.2.176 → django_restit-4.2.179}/account/fcm/legacy.py +0 -0
  20. {django_restit-4.2.176 → django_restit-4.2.179}/account/fcm/v1.py +0 -0
  21. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0001_initial.py +0 -0
  22. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0003_member_phone_number.py +0 -0
  23. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0004_group_modified_alter_group_created.py +0 -0
  24. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0005_member_auth_code_expires.py +0 -0
  25. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0006_member_security_token.py +0 -0
  26. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0007_authtoken_signature_authsession.py +0 -0
  27. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0008_memberdevice_memberdevicemetadata.py +0 -0
  28. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0009_alter_member_phone_number.py +0 -0
  29. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0010_delete_authtoken.py +0 -0
  30. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0011_authtoken.py +0 -0
  31. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0012_settings_settingsmetadata.py +0 -0
  32. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0013_memberdevice_ip.py +0 -0
  33. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0014_alter_notificationmemberrecord_member.py +0 -0
  34. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0015_memberdevice_buid.py +0 -0
  35. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0016_authsession_buid.py +0 -0
  36. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0017_rename_requires_topt_member_requires_totp.py +0 -0
  37. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0018_userpasskey.py +0 -0
  38. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0019_group_location.py +0 -0
  39. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0020_cloudcredentials_cloudcredentialsmetadata.py +0 -0
  40. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0021_alter_cloudcredentials_group.py +0 -0
  41. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0022_alter_memberdevice_modified.py +0 -0
  42. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/0023_authsession_method.py +0 -0
  43. {django_restit-4.2.176 → django_restit-4.2.179}/account/migrations/__init__.py +0 -0
  44. {django_restit-4.2.176 → django_restit-4.2.179}/account/models/__init__.py +0 -0
  45. {django_restit-4.2.176 → django_restit-4.2.179}/account/models/device.py +0 -0
  46. {django_restit-4.2.176 → django_restit-4.2.179}/account/models/feeds.py +0 -0
  47. {django_restit-4.2.176 → django_restit-4.2.179}/account/models/legacy.py +0 -0
  48. {django_restit-4.2.176 → django_restit-4.2.179}/account/models/membership.py +0 -0
  49. {django_restit-4.2.176 → django_restit-4.2.179}/account/models/notify.py +0 -0
  50. {django_restit-4.2.176 → django_restit-4.2.179}/account/models/passkeys.py +0 -0
  51. {django_restit-4.2.176 → django_restit-4.2.179}/account/models/session.py +0 -0
  52. {django_restit-4.2.176 → django_restit-4.2.179}/account/models/settings.py +0 -0
  53. {django_restit-4.2.176 → django_restit-4.2.179}/account/oauth/__init__.py +0 -0
  54. {django_restit-4.2.176 → django_restit-4.2.179}/account/oauth/google.py +0 -0
  55. {django_restit-4.2.176 → django_restit-4.2.179}/account/passkeys/__init__.py +0 -0
  56. {django_restit-4.2.176 → django_restit-4.2.179}/account/passkeys/core.py +0 -0
  57. {django_restit-4.2.176 → django_restit-4.2.179}/account/periodic.py +0 -0
  58. {django_restit-4.2.176 → django_restit-4.2.179}/account/rpc/__init__.py +0 -0
  59. {django_restit-4.2.176 → django_restit-4.2.179}/account/rpc/device.py +0 -0
  60. {django_restit-4.2.176 → django_restit-4.2.179}/account/rpc/group.py +0 -0
  61. {django_restit-4.2.176 → django_restit-4.2.179}/account/rpc/member.py +0 -0
  62. {django_restit-4.2.176 → django_restit-4.2.179}/account/rpc/notify.py +0 -0
  63. {django_restit-4.2.176 → django_restit-4.2.179}/account/rpc/oauth.py +0 -0
  64. {django_restit-4.2.176 → django_restit-4.2.179}/account/rpc/passkeys.py +0 -0
  65. {django_restit-4.2.176 → django_restit-4.2.179}/account/rpc/settings.py +0 -0
  66. {django_restit-4.2.176 → django_restit-4.2.179}/account/settings.py +0 -0
  67. {django_restit-4.2.176 → django_restit-4.2.179}/account/templates/email/base.html +0 -0
  68. {django_restit-4.2.176 → django_restit-4.2.179}/account/templates/email/invite.html +0 -0
  69. {django_restit-4.2.176 → django_restit-4.2.179}/account/templates/email/plain/base.html +0 -0
  70. {django_restit-4.2.176 → django_restit-4.2.179}/account/templates/email/plain/invite.html +0 -0
  71. {django_restit-4.2.176 → django_restit-4.2.179}/account/templates/email/plain/reset_code.html +0 -0
  72. {django_restit-4.2.176 → django_restit-4.2.179}/account/templates/email/reset_code.html +0 -0
  73. {django_restit-4.2.176 → django_restit-4.2.179}/account/templates/email/simple/invite.html +0 -0
  74. {django_restit-4.2.176 → django_restit-4.2.179}/account/templates/email/simple/reset_code.html +0 -0
  75. {django_restit-4.2.176 → django_restit-4.2.179}/account/templates/unsubscribed.html +0 -0
  76. {django_restit-4.2.176 → django_restit-4.2.179}/auditlog/README +0 -0
  77. {django_restit-4.2.176 → django_restit-4.2.179}/auditlog/__init__.py +0 -0
  78. {django_restit-4.2.176 → django_restit-4.2.179}/auditlog/admin.py +0 -0
  79. {django_restit-4.2.176 → django_restit-4.2.179}/auditlog/cloudwatch.py +0 -0
  80. {django_restit-4.2.176 → django_restit-4.2.179}/auditlog/decorators.py +0 -0
  81. {django_restit-4.2.176 → django_restit-4.2.179}/auditlog/middleware.py +0 -0
  82. {django_restit-4.2.176 → django_restit-4.2.179}/auditlog/migrations/0001_initial.py +0 -0
  83. {django_restit-4.2.176 → django_restit-4.2.179}/auditlog/migrations/0002_alter_persistentlog_session.py +0 -0
  84. {django_restit-4.2.176 → django_restit-4.2.179}/auditlog/migrations/__init__.py +0 -0
  85. {django_restit-4.2.176 → django_restit-4.2.179}/auditlog/models.py +0 -0
  86. {django_restit-4.2.176 → django_restit-4.2.179}/auditlog/periodic.py +0 -0
  87. {django_restit-4.2.176 → django_restit-4.2.179}/auditlog/rpc.py +0 -0
  88. {django_restit-4.2.176 → django_restit-4.2.179}/auditlog/tq.py +0 -0
  89. {django_restit-4.2.176 → django_restit-4.2.179}/auditlog/urls.py +0 -0
  90. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/README.md +0 -0
  91. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/__init__.py +0 -0
  92. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/admin.py +0 -0
  93. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/handlers.py +0 -0
  94. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/migrations/0001_initial.py +0 -0
  95. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/migrations/0002_alter_message_cc.py +0 -0
  96. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/migrations/0003_attachment_content_type.py +0 -0
  97. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/migrations/0004_mailtemplate.py +0 -0
  98. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/migrations/0005_alter_mailbox_state.py +0 -0
  99. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/migrations/__init__.py +0 -0
  100. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/models/__init__.py +0 -0
  101. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/models/bounce.py +0 -0
  102. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/models/complaint.py +0 -0
  103. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/models/message.py +0 -0
  104. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/models/template.py +0 -0
  105. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/rpc.py +0 -0
  106. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/utils/__init__.py +0 -0
  107. {django_restit-4.2.176 → django_restit-4.2.179}/inbox/utils/sending.py +0 -0
  108. {django_restit-4.2.176 → django_restit-4.2.179}/incident/README.md +0 -0
  109. {django_restit-4.2.176 → django_restit-4.2.179}/incident/__init__.py +0 -0
  110. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0001_initial.py +0 -0
  111. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0002_event_component_event_component_id.py +0 -0
  112. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0003_rule_action.py +0 -0
  113. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0004_serverossecalert_ssh_sig_alter_rulecheck_parent.py +0 -0
  114. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0005_incident_component_alter_incident_state.py +0 -0
  115. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0006_delete_eventmetadata.py +0 -0
  116. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0007_event_metadata.py +0 -0
  117. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0008_incident_action_sent_incident_hostname_and_more.py +0 -0
  118. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0009_incident_reporter_ip.py +0 -0
  119. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0010_incident_category_incident_component_id.py +0 -0
  120. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0011_ticket.py +0 -0
  121. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0012_rule_match_by.py +0 -0
  122. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0013_rulecheck_is_required.py +0 -0
  123. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0014_event_group_alter_rulecheck_index.py +0 -0
  124. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0015_rule_title_template_alter_incident_state.py +0 -0
  125. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/0016_rule_notify_template.py +0 -0
  126. {django_restit-4.2.176 → django_restit-4.2.179}/incident/migrations/__init__.py +0 -0
  127. {django_restit-4.2.176 → django_restit-4.2.179}/incident/models/__init__.py +0 -0
  128. {django_restit-4.2.176 → django_restit-4.2.179}/incident/models/event.py +0 -0
  129. {django_restit-4.2.176 → django_restit-4.2.179}/incident/models/incident.py +0 -0
  130. {django_restit-4.2.176 → django_restit-4.2.179}/incident/models/ossec.py +0 -0
  131. {django_restit-4.2.176 → django_restit-4.2.179}/incident/models/rules.py +0 -0
  132. {django_restit-4.2.176 → django_restit-4.2.179}/incident/models/ticket.py +0 -0
  133. {django_restit-4.2.176 → django_restit-4.2.179}/incident/parsers/__init__.py +0 -0
  134. {django_restit-4.2.176 → django_restit-4.2.179}/incident/parsers/ossec.py +0 -0
  135. {django_restit-4.2.176 → django_restit-4.2.179}/incident/periodic.py +0 -0
  136. {django_restit-4.2.176 → django_restit-4.2.179}/incident/rpc.py +0 -0
  137. {django_restit-4.2.176 → django_restit-4.2.179}/incident/templates/email/incident_change.html +0 -0
  138. {django_restit-4.2.176 → django_restit-4.2.179}/incident/templates/email/incident_msg.html +0 -0
  139. {django_restit-4.2.176 → django_restit-4.2.179}/incident/templates/email/incident_new.html +0 -0
  140. {django_restit-4.2.176 → django_restit-4.2.179}/incident/templates/email/incident_plain.html +0 -0
  141. {django_restit-4.2.176 → django_restit-4.2.179}/incident/tq.py +0 -0
  142. {django_restit-4.2.176 → django_restit-4.2.179}/location/__init__.py +0 -0
  143. {django_restit-4.2.176 → django_restit-4.2.179}/location/admin.py +0 -0
  144. {django_restit-4.2.176 → django_restit-4.2.179}/location/geolocate.py +0 -0
  145. {django_restit-4.2.176 → django_restit-4.2.179}/location/migrations/0001_initial.py +0 -0
  146. {django_restit-4.2.176 → django_restit-4.2.179}/location/migrations/0002_geoip_subnet_alter_geoip_ip.py +0 -0
  147. {django_restit-4.2.176 → django_restit-4.2.179}/location/migrations/0003_address_postalcode_suffix.py +0 -0
  148. {django_restit-4.2.176 → django_restit-4.2.179}/location/migrations/0004_remove_address_modified_by_address_group_and_more.py +0 -0
  149. {django_restit-4.2.176 → django_restit-4.2.179}/location/migrations/__init__.py +0 -0
  150. {django_restit-4.2.176 → django_restit-4.2.179}/location/models/__init__.py +0 -0
  151. {django_restit-4.2.176 → django_restit-4.2.179}/location/models/address.py +0 -0
  152. {django_restit-4.2.176 → django_restit-4.2.179}/location/models/ip.py +0 -0
  153. {django_restit-4.2.176 → django_restit-4.2.179}/location/models/legacy.py +0 -0
  154. {django_restit-4.2.176 → django_restit-4.2.179}/location/models/location.py +0 -0
  155. {django_restit-4.2.176 → django_restit-4.2.179}/location/models/track.py +0 -0
  156. {django_restit-4.2.176 → django_restit-4.2.179}/location/providers/__init__.py +0 -0
  157. {django_restit-4.2.176 → django_restit-4.2.179}/location/providers/iplookup/__init__.py +0 -0
  158. {django_restit-4.2.176 → django_restit-4.2.179}/location/providers/iplookup/abstractapi.py +0 -0
  159. {django_restit-4.2.176 → django_restit-4.2.179}/location/providers/iplookup/abuse.py +0 -0
  160. {django_restit-4.2.176 → django_restit-4.2.179}/location/providers/iplookup/extremeip.py +0 -0
  161. {django_restit-4.2.176 → django_restit-4.2.179}/location/providers/iplookup/geoplugin.py +0 -0
  162. {django_restit-4.2.176 → django_restit-4.2.179}/location/providers/iplookup/ipapi.py +0 -0
  163. {django_restit-4.2.176 → django_restit-4.2.179}/location/providers/iplookup/ipinfo.py +0 -0
  164. {django_restit-4.2.176 → django_restit-4.2.179}/location/providers/iplookup/restit.py +0 -0
  165. {django_restit-4.2.176 → django_restit-4.2.179}/location/providers/location/__init__.py +0 -0
  166. {django_restit-4.2.176 → django_restit-4.2.179}/location/providers/location/google.py +0 -0
  167. {django_restit-4.2.176 → django_restit-4.2.179}/location/providers/timezones/__init__.py +0 -0
  168. {django_restit-4.2.176 → django_restit-4.2.179}/location/providers/timezones/google.py +0 -0
  169. {django_restit-4.2.176 → django_restit-4.2.179}/location/providers/zillow.py +0 -0
  170. {django_restit-4.2.176 → django_restit-4.2.179}/location/rpc/__init__.py +0 -0
  171. {django_restit-4.2.176 → django_restit-4.2.179}/location/rpc/address.py +0 -0
  172. {django_restit-4.2.176 → django_restit-4.2.179}/location/rpc/ip.py +0 -0
  173. {django_restit-4.2.176 → django_restit-4.2.179}/location/rpc/location.py +0 -0
  174. {django_restit-4.2.176 → django_restit-4.2.179}/location/rpc/track.py +0 -0
  175. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/__init__.py +0 -0
  176. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/admin.py +0 -0
  177. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/caching.py +0 -0
  178. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/cvutil/__init__.py +0 -0
  179. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/cvutil/contours.py +0 -0
  180. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/cvutil/images.py +0 -0
  181. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/cvutil/misc.py +0 -0
  182. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/cvutil/text.py +0 -0
  183. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/fixtures/initial_data.json +0 -0
  184. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/fixtures/medialib.json +0 -0
  185. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/fixtures/medialib_test_fixture.json +0 -0
  186. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/forms.py +0 -0
  187. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/migrations/0001_initial.py +0 -0
  188. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/migrations/0002_alter_mediaitemrendition_bytes.py +0 -0
  189. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/migrations/__init__.py +0 -0
  190. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/ocr.py +0 -0
  191. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/pdf.py +0 -0
  192. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/qrcode.py +0 -0
  193. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/__init__.py +0 -0
  194. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/engines/__init__.py +0 -0
  195. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/engines/anigif.py +0 -0
  196. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/engines/ffmpeg.py +0 -0
  197. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/engines/gifsicle.py +0 -0
  198. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/engines/hls.py +0 -0
  199. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/engines/mp4box.py +0 -0
  200. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/engines/rtmp/Makefile +0 -0
  201. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/engines/rtmp/__init__.py +0 -0
  202. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/engines/rtmp/rtmp.i +0 -0
  203. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/engines/rtmpdump.py +0 -0
  204. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/engines/rtmpsink.py +0 -0
  205. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/engines/video_getinfo.py +0 -0
  206. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/engines/websnap.py +0 -0
  207. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/exceptions.py +0 -0
  208. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/presets/__init__.py +0 -0
  209. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/presets/akamai.py +0 -0
  210. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/presets/animated_thumbnail.py +0 -0
  211. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/presets/ffmpeg.py +0 -0
  212. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/presets/flv.py +0 -0
  213. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/presets/hls.py +0 -0
  214. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/presets/image_transcode.py +0 -0
  215. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/presets/image_validate.py +0 -0
  216. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/presets/mp4.py +0 -0
  217. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/presets/video_still.py +0 -0
  218. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/presets/video_validate.py +0 -0
  219. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/presets/websnap.py +0 -0
  220. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/presets/youtube.py +0 -0
  221. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/render_utils.py +0 -0
  222. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/render/schedule.py +0 -0
  223. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/rpc/__init__.py +0 -0
  224. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/rpc/legacy.py +0 -0
  225. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/rpc/media.py +0 -0
  226. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/rpc/tools.py +0 -0
  227. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/scripts/init_config +0 -0
  228. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/css/base_medialibui.css +0 -0
  229. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/css/base_widgets.css +0 -0
  230. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/css/jquery.jcrop.css +0 -0
  231. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/img/arrow-down-white.png +0 -0
  232. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/img/bg-body.gif +0 -0
  233. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/img/cancel.gif +0 -0
  234. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/img/icon-generic.gif +0 -0
  235. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/img/icon-image.gif +0 -0
  236. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/img/icon-media.gif +0 -0
  237. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/img/icon-zip.gif +0 -0
  238. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/img/loading.gif +0 -0
  239. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/img/noimage.gif +0 -0
  240. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/img/render_err.gif +0 -0
  241. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/img/rendering.gif +0 -0
  242. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/img/star_off.png +0 -0
  243. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/img/star_on.png +0 -0
  244. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/img/unknown.gif +0 -0
  245. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/lib/caman.full.js +0 -0
  246. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/lib/hammer.min.js +0 -0
  247. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/lib/jquery.Jcrop.js +0 -0
  248. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/lib/jquery.hammer.js +0 -0
  249. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/lib/load-image.min.js +0 -0
  250. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/lib/swiper.js +0 -0
  251. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/lib/tinymce/plugins/medialib/editor_plugin.js +0 -0
  252. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/lib/tinymce/plugins/medialib/editor_plugin_src.js +0 -0
  253. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/lib/tinymce/plugins/medialib/js/dialog.js +0 -0
  254. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/static/lib/tinymce/plugins/medialib/medialib.html +0 -0
  255. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/__init__.py +0 -0
  256. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/apiclient/__init__.py +0 -0
  257. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/apiclient/channel.py +0 -0
  258. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/apiclient/discovery.py +0 -0
  259. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/apiclient/errors.py +0 -0
  260. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/apiclient/http.py +0 -0
  261. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/apiclient/mimeparse.py +0 -0
  262. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/apiclient/model.py +0 -0
  263. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/apiclient/sample_tools.py +0 -0
  264. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/apiclient/schema.py +0 -0
  265. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/filestore.py +0 -0
  266. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/httplib2/__init__.py +0 -0
  267. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/httplib2/cacerts.txt +0 -0
  268. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/httplib2/iri2uri.py +0 -0
  269. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/httplib2/socks.py +0 -0
  270. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/httpstore.py +0 -0
  271. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/nullstore.py +0 -0
  272. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/__init__.py +0 -0
  273. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/anyjson.py +0 -0
  274. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/appengine.py +0 -0
  275. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/client.py +0 -0
  276. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/clientsecrets.py +0 -0
  277. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/crypt.py +0 -0
  278. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/django_orm.py +0 -0
  279. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/file.py +0 -0
  280. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/gce.py +0 -0
  281. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/keyring_storage.py +0 -0
  282. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/locked_file.py +0 -0
  283. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/multistore_file.py +0 -0
  284. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/old_run.py +0 -0
  285. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/tools.py +0 -0
  286. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/util.py +0 -0
  287. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/oauth2client/xsrfutil.py +0 -0
  288. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/rtmpstore.py +0 -0
  289. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/s3.py +0 -0
  290. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/s3store.py +0 -0
  291. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/uritemplate/__init__.py +0 -0
  292. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/stores/youtubestore.py +0 -0
  293. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/base.html +0 -0
  294. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/instances.html +0 -0
  295. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/items.html +0 -0
  296. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/library.html +0 -0
  297. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/notify_error.subject +0 -0
  298. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/notify_error.to +0 -0
  299. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/notify_error.txt +0 -0
  300. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/notify_ready.subject +0 -0
  301. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/notify_ready.to +0 -0
  302. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/notify_ready.txt +0 -0
  303. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/notify_render_error.subject +0 -0
  304. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/notify_render_error.to +0 -0
  305. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/notify_render_error.txt +0 -0
  306. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/notify_validate_error.subject +0 -0
  307. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/notify_validate_error.to +0 -0
  308. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/notify_validate_error.txt +0 -0
  309. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/smil +0 -0
  310. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/test.html +0 -0
  311. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/templates/medialib/testpicker.html +0 -0
  312. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/tests.py +0 -0
  313. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/tq.py +0 -0
  314. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/urls.py +0 -0
  315. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/utils.py +0 -0
  316. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/views.py +0 -0
  317. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/__init__.py +0 -0
  318. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/apiclient/__init__.py +0 -0
  319. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/apiclient/channel.py +0 -0
  320. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/apiclient/discovery.py +0 -0
  321. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/apiclient/errors.py +0 -0
  322. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/apiclient/http.py +0 -0
  323. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/apiclient/mimeparse.py +0 -0
  324. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/apiclient/model.py +0 -0
  325. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/apiclient/sample_tools.py +0 -0
  326. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/apiclient/schema.py +0 -0
  327. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/httplib2/__init__.py +0 -0
  328. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/httplib2/cacerts.txt +0 -0
  329. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/httplib2/iri2uri.py +0 -0
  330. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/httplib2/socks.py +0 -0
  331. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/__init__.py +0 -0
  332. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/anyjson.py +0 -0
  333. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/appengine.py +0 -0
  334. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/client.py +0 -0
  335. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/clientsecrets.py +0 -0
  336. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/crypt.py +0 -0
  337. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/django_orm.py +0 -0
  338. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/file.py +0 -0
  339. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/gce.py +0 -0
  340. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/keyring_storage.py +0 -0
  341. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/locked_file.py +0 -0
  342. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/multistore_file.py +0 -0
  343. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/old_run.py +0 -0
  344. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/tools.py +0 -0
  345. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/util.py +0 -0
  346. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/oauth2client/xsrfutil.py +0 -0
  347. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/upload.py +0 -0
  348. {django_restit-4.2.176 → django_restit-4.2.179}/medialib/youtube/uritemplate/__init__.py +0 -0
  349. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/README.md +0 -0
  350. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/__init__.py +0 -0
  351. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/eod.py +0 -0
  352. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/examples/eod_example.py +0 -0
  353. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/management/__init__.py +0 -0
  354. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/management/commands/__init__.py +0 -0
  355. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/management/commands/delete_gauge.py +0 -0
  356. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/management/commands/delete_metric.py +0 -0
  357. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/management/commands/fix_redis_metrics_keys.py +0 -0
  358. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/management/commands/generate_test_metrics.py +0 -0
  359. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/management/commands/redis_metrics_send_mail.py +0 -0
  360. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/management/commands/reset_weekly_metrics.py +0 -0
  361. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/management/commands/system_metric.py +0 -0
  362. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/migrations/0001_initial.py +0 -0
  363. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/migrations/0002_metrics_k11_metrics_k12_metrics_k13_metrics_k14_and_more.py +0 -0
  364. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/migrations/0003_metrics_expires.py +0 -0
  365. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/migrations/0004_eodmetrics.py +0 -0
  366. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/migrations/0005_alter_metrics_v1_alter_metrics_v10_alter_metrics_v11_and_more.py +0 -0
  367. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/migrations/__init__.py +0 -0
  368. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/models.py +0 -0
  369. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/periodic.py +0 -0
  370. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/providers/__init__.py +0 -0
  371. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/providers/aws.py +0 -0
  372. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/rpc.py +0 -0
  373. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/settings.py +0 -0
  374. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/tq.py +0 -0
  375. {django_restit-4.2.176 → django_restit-4.2.179}/metrics/utils.py +0 -0
  376. {django_restit-4.2.176 → django_restit-4.2.179}/pushit/__init__.py +0 -0
  377. {django_restit-4.2.176 → django_restit-4.2.179}/pushit/admin.py +0 -0
  378. {django_restit-4.2.176 → django_restit-4.2.179}/pushit/migrations/0001_initial.py +0 -0
  379. {django_restit-4.2.176 → django_restit-4.2.179}/pushit/migrations/__init__.py +0 -0
  380. {django_restit-4.2.176 → django_restit-4.2.179}/pushit/models.py +0 -0
  381. {django_restit-4.2.176 → django_restit-4.2.179}/pushit/rpc/__init__.py +0 -0
  382. {django_restit-4.2.176 → django_restit-4.2.179}/pushit/rpc/githooks.py +0 -0
  383. {django_restit-4.2.176 → django_restit-4.2.179}/pushit/rpc/legacy.py +0 -0
  384. {django_restit-4.2.176 → django_restit-4.2.179}/pushit/rpc/products.py +0 -0
  385. {django_restit-4.2.176 → django_restit-4.2.179}/pushit/static/js/models_pushit.js +0 -0
  386. {django_restit-4.2.176 → django_restit-4.2.179}/pushit/tq.py +0 -0
  387. {django_restit-4.2.176 → django_restit-4.2.179}/pushit/utils.py +0 -0
  388. {django_restit-4.2.176 → django_restit-4.2.179}/rest/.gitignore +0 -0
  389. {django_restit-4.2.176 → django_restit-4.2.179}/rest/README.md +0 -0
  390. {django_restit-4.2.176 → django_restit-4.2.179}/rest/RemoteEvents.py +0 -0
  391. {django_restit-4.2.176 → django_restit-4.2.179}/rest/arc4.py +0 -0
  392. {django_restit-4.2.176 → django_restit-4.2.179}/rest/cache.py +0 -0
  393. {django_restit-4.2.176 → django_restit-4.2.179}/rest/crypto/__init__.py +0 -0
  394. {django_restit-4.2.176 → django_restit-4.2.179}/rest/crypto/aes.py +0 -0
  395. {django_restit-4.2.176 → django_restit-4.2.179}/rest/crypto/privpub.py +0 -0
  396. {django_restit-4.2.176 → django_restit-4.2.179}/rest/crypto/util.py +0 -0
  397. {django_restit-4.2.176 → django_restit-4.2.179}/rest/datem.py +0 -0
  398. {django_restit-4.2.176 → django_restit-4.2.179}/rest/decorators.py +0 -0
  399. {django_restit-4.2.176 → django_restit-4.2.179}/rest/encryption.py +0 -0
  400. {django_restit-4.2.176 → django_restit-4.2.179}/rest/errors.py +0 -0
  401. {django_restit-4.2.176 → django_restit-4.2.179}/rest/extra/__init__.py +0 -0
  402. {django_restit-4.2.176 → django_restit-4.2.179}/rest/extra/hostinfo.py +0 -0
  403. {django_restit-4.2.176 → django_restit-4.2.179}/rest/extra/json_metadata.py +0 -0
  404. {django_restit-4.2.176 → django_restit-4.2.179}/rest/fields.py +0 -0
  405. {django_restit-4.2.176 → django_restit-4.2.179}/rest/forms.py +0 -0
  406. {django_restit-4.2.176 → django_restit-4.2.179}/rest/helpers.py +0 -0
  407. {django_restit-4.2.176 → django_restit-4.2.179}/rest/joke.py +0 -0
  408. {django_restit-4.2.176 → django_restit-4.2.179}/rest/jwtoken.py +0 -0
  409. {django_restit-4.2.176 → django_restit-4.2.179}/rest/log.py +0 -0
  410. {django_restit-4.2.176 → django_restit-4.2.179}/rest/mailman.py +0 -0
  411. {django_restit-4.2.176 → django_restit-4.2.179}/rest/management/__init__.py +0 -0
  412. {django_restit-4.2.176 → django_restit-4.2.179}/rest/management/commands/__init__.py +0 -0
  413. {django_restit-4.2.176 → django_restit-4.2.179}/rest/management/commands/rpc.py +0 -0
  414. {django_restit-4.2.176 → django_restit-4.2.179}/rest/middleware/__init__.py +0 -0
  415. {django_restit-4.2.176 → django_restit-4.2.179}/rest/middleware/cors.py +0 -0
  416. {django_restit-4.2.176 → django_restit-4.2.179}/rest/middleware/db_router.py +0 -0
  417. {django_restit-4.2.176 → django_restit-4.2.179}/rest/middleware/jwt.py +0 -0
  418. {django_restit-4.2.176 → django_restit-4.2.179}/rest/middleware/request.py +0 -0
  419. {django_restit-4.2.176 → django_restit-4.2.179}/rest/middleware/session.py +0 -0
  420. {django_restit-4.2.176 → django_restit-4.2.179}/rest/middleware/session_store.py +0 -0
  421. {django_restit-4.2.176 → django_restit-4.2.179}/rest/models/__init__.py +0 -0
  422. {django_restit-4.2.176 → django_restit-4.2.179}/rest/models/cacher.py +0 -0
  423. {django_restit-4.2.176 → django_restit-4.2.179}/rest/models/metadata.py +0 -0
  424. {django_restit-4.2.176 → django_restit-4.2.179}/rest/net.py +0 -0
  425. {django_restit-4.2.176 → django_restit-4.2.179}/rest/regexes.yaml +0 -0
  426. {django_restit-4.2.176 → django_restit-4.2.179}/rest/requestex.py +0 -0
  427. {django_restit-4.2.176 → django_restit-4.2.179}/rest/rpc.py +0 -0
  428. {django_restit-4.2.176 → django_restit-4.2.179}/rest/search.py +0 -0
  429. {django_restit-4.2.176 → django_restit-4.2.179}/rest/serializers/__init__.py +0 -0
  430. {django_restit-4.2.176 → django_restit-4.2.179}/rest/serializers/collection.py +0 -0
  431. {django_restit-4.2.176 → django_restit-4.2.179}/rest/serializers/csv.py +0 -0
  432. {django_restit-4.2.176 → django_restit-4.2.179}/rest/serializers/excel.py +0 -0
  433. {django_restit-4.2.176 → django_restit-4.2.179}/rest/serializers/json.py +0 -0
  434. {django_restit-4.2.176 → django_restit-4.2.179}/rest/serializers/legacy.py +0 -0
  435. {django_restit-4.2.176 → django_restit-4.2.179}/rest/serializers/localizers.py +0 -0
  436. {django_restit-4.2.176 → django_restit-4.2.179}/rest/serializers/model.py +0 -0
  437. {django_restit-4.2.176 → django_restit-4.2.179}/rest/serializers/profiler.py +0 -0
  438. {django_restit-4.2.176 → django_restit-4.2.179}/rest/serializers/response.py +0 -0
  439. {django_restit-4.2.176 → django_restit-4.2.179}/rest/serializers/util.py +0 -0
  440. {django_restit-4.2.176 → django_restit-4.2.179}/rest/service.py +0 -0
  441. {django_restit-4.2.176 → django_restit-4.2.179}/rest/settings_helper.py +0 -0
  442. {django_restit-4.2.176 → django_restit-4.2.179}/rest/ssl_check.py +0 -0
  443. {django_restit-4.2.176 → django_restit-4.2.179}/rest/static/lib/jquery.js +0 -0
  444. {django_restit-4.2.176 → django_restit-4.2.179}/rest/static/rest/app.css +0 -0
  445. {django_restit-4.2.176 → django_restit-4.2.179}/rest/static/rest/app.js +0 -0
  446. {django_restit-4.2.176 → django_restit-4.2.179}/rest/static/rest/rest.js +0 -0
  447. {django_restit-4.2.176 → django_restit-4.2.179}/rest/static/rest/rest.scss +0 -0
  448. {django_restit-4.2.176 → django_restit-4.2.179}/rest/templates/email/error.html +0 -0
  449. {django_restit-4.2.176 → django_restit-4.2.179}/rest/templates/email/error.subject +0 -0
  450. {django_restit-4.2.176 → django_restit-4.2.179}/rest/templates/rest_docs.html +0 -0
  451. {django_restit-4.2.176 → django_restit-4.2.179}/rest/templates/rest_html.html +0 -0
  452. {django_restit-4.2.176 → django_restit-4.2.179}/rest/ua.py +0 -0
  453. {django_restit-4.2.176 → django_restit-4.2.179}/rest/uberdict.py +0 -0
  454. {django_restit-4.2.176 → django_restit-4.2.179}/rest/url_docs.py +0 -0
  455. {django_restit-4.2.176 → django_restit-4.2.179}/rest/urls.py +0 -0
  456. {django_restit-4.2.176 → django_restit-4.2.179}/rest/views.py +0 -0
  457. {django_restit-4.2.176 → django_restit-4.2.179}/sessionlog/.gitignore +0 -0
  458. {django_restit-4.2.176 → django_restit-4.2.179}/sessionlog/README.md +0 -0
  459. {django_restit-4.2.176 → django_restit-4.2.179}/sessionlog/__init__.py +0 -0
  460. {django_restit-4.2.176 → django_restit-4.2.179}/sessionlog/admin.py +0 -0
  461. {django_restit-4.2.176 → django_restit-4.2.179}/sessionlog/migrations/0001_initial.py +0 -0
  462. {django_restit-4.2.176 → django_restit-4.2.179}/sessionlog/migrations/__init__.py +0 -0
  463. {django_restit-4.2.176 → django_restit-4.2.179}/sessionlog/models.py +0 -0
  464. {django_restit-4.2.176 → django_restit-4.2.179}/sessionlog/tests.py +0 -0
  465. {django_restit-4.2.176 → django_restit-4.2.179}/sessionlog/views.py +0 -0
  466. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/README.md +0 -0
  467. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/__init__.py +0 -0
  468. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/admin.py +0 -0
  469. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/migrations/0001_initial.py +0 -0
  470. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/migrations/__init__.py +0 -0
  471. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/models.py +0 -0
  472. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/periodic.py +0 -0
  473. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/rpc.py +0 -0
  474. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/tq.py +0 -0
  475. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/transports/__init__.py +0 -0
  476. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/transports/email.py +0 -0
  477. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/transports/http.py +0 -0
  478. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/transports/s3.py +0 -0
  479. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/transports/sftp.py +0 -0
  480. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/transports/sms.py +0 -0
  481. {django_restit-4.2.176 → django_restit-4.2.179}/taskqueue/worker.py +0 -0
  482. {django_restit-4.2.176 → django_restit-4.2.179}/telephony/__init__.py +0 -0
  483. {django_restit-4.2.176 → django_restit-4.2.179}/telephony/admin.py +0 -0
  484. {django_restit-4.2.176 → django_restit-4.2.179}/telephony/decorators.py +0 -0
  485. {django_restit-4.2.176 → django_restit-4.2.179}/telephony/migrations/0001_initial.py +0 -0
  486. {django_restit-4.2.176 → django_restit-4.2.179}/telephony/migrations/0002_alter_sms_sid.py +0 -0
  487. {django_restit-4.2.176 → django_restit-4.2.179}/telephony/migrations/__init__.py +0 -0
  488. {django_restit-4.2.176 → django_restit-4.2.179}/telephony/models.py +0 -0
  489. {django_restit-4.2.176 → django_restit-4.2.179}/telephony/phone_util.py +0 -0
  490. {django_restit-4.2.176 → django_restit-4.2.179}/telephony/rpc.py +0 -0
  491. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/__init__.py +0 -0
  492. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/migrations/0001_initial.py +0 -0
  493. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/migrations/0002_alter_pagemedia_entry.py +0 -0
  494. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/migrations/0003_page_perms.py +0 -0
  495. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/migrations/__init__.py +0 -0
  496. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/models/__init__.py +0 -0
  497. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/models/faq.py +0 -0
  498. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/models/page.py +0 -0
  499. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/models/revision.py +0 -0
  500. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/periodic.py +0 -0
  501. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/renderers/__init__.py +0 -0
  502. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/renderers/mistune/__init__.py +0 -0
  503. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/renderers/mistune/highlight.py +0 -0
  504. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/renderers/mistune/math.py +0 -0
  505. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/renderers/mistune/media.py +0 -0
  506. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/renderers/mistune/meta.py +0 -0
  507. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/renderers/mistune/task_list.py +0 -0
  508. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/renderers/mistune/toc.py +0 -0
  509. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/rpc/__init__.py +0 -0
  510. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/rpc/wiki.py +0 -0
  511. {django_restit-4.2.176 → django_restit-4.2.179}/wiki/tq.py +0 -0
  512. {django_restit-4.2.176 → django_restit-4.2.179}/ws4redis/README.md +0 -0
  513. {django_restit-4.2.176 → django_restit-4.2.179}/ws4redis/__init__.py +0 -0
  514. {django_restit-4.2.176 → django_restit-4.2.179}/ws4redis/client.py +0 -0
  515. {django_restit-4.2.176 → django_restit-4.2.179}/ws4redis/connection.py +0 -0
  516. {django_restit-4.2.176 → django_restit-4.2.179}/ws4redis/exceptions.py +0 -0
  517. {django_restit-4.2.176 → django_restit-4.2.179}/ws4redis/redis.py +0 -0
  518. {django_restit-4.2.176 → django_restit-4.2.179}/ws4redis/servers/__init__.py +0 -0
  519. {django_restit-4.2.176 → django_restit-4.2.179}/ws4redis/servers/base.py +0 -0
  520. {django_restit-4.2.176 → django_restit-4.2.179}/ws4redis/servers/django.py +0 -0
  521. {django_restit-4.2.176 → django_restit-4.2.179}/ws4redis/servers/uwsgi.py +0 -0
  522. {django_restit-4.2.176 → django_restit-4.2.179}/ws4redis/settings.py +0 -0
  523. {django_restit-4.2.176 → django_restit-4.2.179}/ws4redis/utf8validator.py +0 -0
  524. {django_restit-4.2.176 → django_restit-4.2.179}/ws4redis/websocket.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: django-restit
3
- Version: 4.2.176
3
+ Version: 4.2.179
4
4
  Summary: A Rest Framework for DJANGO
5
5
  License: MIT
6
6
  Author: Ian Starnes
@@ -52,6 +52,7 @@ class Group(models.Model, RestModel, MetaDataModel):
52
52
  LIST_PARENT_KINDS = ["org", "iso"]
53
53
  POST_SAVE_FIELDS = ["child_of"]
54
54
  GROUP_FIELD = "self"
55
+ CAN_BATCH = True
55
56
  VIEW_PERMS = [
56
57
  "view_all_groups",
57
58
  "manage_groups",
@@ -72,6 +72,7 @@ class Member(User, RestModel, MetaDataModel):
72
72
  SEARCH_FIELDS = ["username", "email", "first_name", "last_name", "display_name", "phone_number"]
73
73
  VIEW_PERMS = ["view_members", "manage_members", "manage_users", "owner"]
74
74
  SAVE_PERMS = ["invite_members", "manage_members", "manage_users", "owner"]
75
+ CAN_BATCH = True
75
76
  LIST_DEFAULT_FILTERS = {
76
77
  "is_active": True
77
78
  }
@@ -988,7 +989,12 @@ class Member(User, RestModel, MetaDataModel):
988
989
  request.member.log("permission_denied", "attempting to set password for user: {}".format(self.username), method="password_change", level=3)
989
990
  raise PermissionDeniedException("Permission Denied: attempting to change password")
990
991
  if request.member.id != self.id:
991
- self.log("modified_by", "password changed by: {}".format(request.member.username), method="password_change", level=31)
992
+ error = f"{self.username} password changed by: {request.member.username}"
993
+ self.reportIncident("account", error, details=error, error_code=497)
994
+ self.log("modified_by", error, method="password_change", level=31)
995
+
996
+ error = f"{self.username} password changed by: {request.member.username}"
997
+ request.member.reportIncident("account", error, details=error, error_code=497)
992
998
  request.member.log("member_edit", "{} password changed".format(self.username), method="password_change", level=31)
993
999
  self.setPassword(value, skip_history=True)
994
1000
  else:
@@ -84,9 +84,10 @@ def on_complete_jwt(request, member, method="basic"):
84
84
  request.device_id = device_id
85
85
  request.buid = request.DATA.get("__buid__", None)
86
86
  request.auth_session = am.AuthSession.NewSession(request, method)
87
+ if not bool(device_id) and bool(request.buid):
88
+ device_id = request.buid
87
89
  if bool(device_id):
88
90
  am.MemberDevice.register(request, member, device_id)
89
-
90
91
  request.jwt_token = token.access_token # this tells the middleware to store in cookie
91
92
  return rv.restGet(
92
93
  request,
@@ -131,7 +131,7 @@ def toFileObject(attachment):
131
131
  return obj
132
132
 
133
133
 
134
- def parseAddresses(input_string, force_name=False):
134
+ def parseAddresses(input_string, force_name=False, emails_only=False):
135
135
  if input_string is None:
136
136
  return []
137
137
  # Define a regex pattern to capture email addresses
@@ -153,6 +153,8 @@ def parseAddresses(input_string, force_name=False):
153
153
  else:
154
154
  name = None
155
155
  parsed_emails.append(objict(name=name, email=addr, full_email=full_email))
156
+ if emails_only:
157
+ return [email.email for email in parsed_emails]
156
158
  return parsed_emails
157
159
 
158
160
 
@@ -164,4 +166,3 @@ def toString(value):
164
166
  elif isinstance(value, (int, float)):
165
167
  value = str(value)
166
168
  return value
167
-
@@ -12,10 +12,17 @@ import re
12
12
 
13
13
 
14
14
  def createMessage(sender, recipients, subject, text, html, attachments=None, replyto=None):
15
- message = objict(sender=sender, recipients=recipients)
16
15
 
17
- if not isinstance(message.recipients, (tuple, list)):
18
- message.recipients = [message.recipients]
16
+ if isinstance(recipients, str):
17
+ if "," in recipients:
18
+ recipients = [t.strip() for t in recipients.split(',')]
19
+ elif ";" in recipients:
20
+ recipients = [t.strip() for t in recipients.split(';')]
21
+
22
+ if not isinstance(recipients, (tuple, list)):
23
+ recipients = [recipients]
24
+
25
+ message = objict(sender=sender, recipients=recipients)
19
26
 
20
27
  if attachments is None:
21
28
  attachments = []
@@ -16,16 +16,14 @@ import urllib.request, urllib.error, urllib.parse
16
16
  from urllib.parse import urlparse
17
17
  from datetime import datetime, date
18
18
  import os
19
- import hashlib
20
19
  import time
21
- import mimetypes
22
20
  import tempfile
23
21
  import re
24
22
 
25
23
  from medialib import utils
26
24
  from rest import settings
27
25
  from rest.models import RestModel, MetaDataBase, MetaDataModel
28
- from rest.decorators import rest_async
26
+ from rest import filetypes
29
27
 
30
28
  from taskqueue.models import Task
31
29
 
@@ -547,7 +545,7 @@ class MediaItem(models.Model, RestModel, MetaDataModel):
547
545
  if kind in ["png", "jpg", "jpeg", "jfif", "bmp", "gif", "tif"]:
548
546
  self.kind = "I"
549
547
  return
550
- (mt, _) = mimetypes.guess_type(filename)
548
+ mt = filetypes.guess_type(filename)
551
549
  if mt == None:
552
550
  self.kind = '*'
553
551
  elif mt[:6] == 'image/':
@@ -833,7 +831,7 @@ class MediaItem(models.Model, RestModel, MetaDataModel):
833
831
  return image
834
832
  return {
835
833
  "kind": image.kind,
836
- "content_type": mimetypes.guess_type(image.url)[0],
834
+ "content_type": filetypes.guess_type(image.url),
837
835
  "bytes":image.bytes,
838
836
  "url":image.view_url(request=request, expires=None, is_secure=True),
839
837
  "width":image.width,
@@ -860,7 +858,7 @@ class MediaItem(models.Model, RestModel, MetaDataModel):
860
858
  return None
861
859
  return {
862
860
  "kind": orig.kind,
863
- "content_type": mimetypes.guess_type(self.name)[0],
861
+ "content_type": filetypes.guess_type(self.name),
864
862
  "bytes":orig.bytes,
865
863
  "url":orig.view_url(request=request, expires=None, is_secure=True),
866
864
  "width":orig.width,
@@ -1466,4 +1464,3 @@ class MediaItemParameterSetting(models.Model):
1466
1464
 
1467
1465
  def __str__(self):
1468
1466
  return "%s - %s" % (str(self.item), str(self.parameter))
1469
-
@@ -329,7 +329,7 @@ class R(object):
329
329
  for s in slug:
330
330
  self.metric(s, num, category, expire, date)
331
331
  return
332
-
332
+
333
333
  # Add the slug to the set of metric slugs
334
334
  try:
335
335
  self.r.sadd(self._metric_slugs_key, slug)
@@ -382,12 +382,12 @@ class R(object):
382
382
  keys = utils.build_keys(slug, min_granularity=min_granularity, max_granularity=max_granularity)
383
383
 
384
384
  for granularity, key in zip(granularities, keys):
385
- rh.debug("-- get_metric --", granularity, key)
385
+ # rh.debug("-- get_metric --", granularity, key)
386
386
  try:
387
387
  results[granularity] = int(self.r.get(key))
388
388
  except Exception:
389
389
  results[granularity] = 0
390
- rh.log_exception("get_metric", granularity, key)
390
+ # rh.log_exception("get_metric", granularity, key)
391
391
  if min_granularity and min_granularity == max_granularity:
392
392
  return results[min_granularity]
393
393
  return results
@@ -661,4 +661,3 @@ class R(object):
661
661
  key = self._gauge_key(slug)
662
662
  self.r.delete(key) # Remove the Gauge
663
663
  self.r.srem(self._gauge_slugs_key, slug) # Remove from the set of keys
664
-
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "django-restit"
3
- version = "4.2.176"
3
+ version = "4.2.179"
4
4
  description = "A Rest Framework for DJANGO"
5
5
  authors = ["Ian Starnes <ians@311labs.com>"]
6
6
  license = "MIT"
@@ -1,4 +1,4 @@
1
1
  from .uberdict import UberDict # noqa: F401
2
2
  from .settings_helper import settings # noqa: F401
3
3
 
4
- __version__ = "4.2.176"
4
+ __version__ = "4.2.179"
@@ -0,0 +1,128 @@
1
+ EXTENSION_TO_MIME = {
2
+ # Documents
3
+ '.pdf': 'application/pdf',
4
+ '.doc': 'application/msword',
5
+ '.docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
6
+ '.xls': 'application/vnd.ms-excel',
7
+ '.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
8
+ '.ppt': 'application/vnd.ms-powerpoint',
9
+ '.pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
10
+ '.csv': 'text/csv',
11
+ '.tsv': 'text/tab-separated-values',
12
+ '.txt': 'text/plain',
13
+ '.rtf': 'application/rtf',
14
+ '.odt': 'application/vnd.oasis.opendocument.text',
15
+ '.ods': 'application/vnd.oasis.opendocument.spreadsheet',
16
+ '.md': 'text/markdown',
17
+ '.epub': 'application/epub+zip',
18
+ '.ics': 'text/calendar',
19
+
20
+ # Images
21
+ '.jpg': 'image/jpeg',
22
+ '.jpeg': 'image/jpeg',
23
+ '.png': 'image/png',
24
+ '.gif': 'image/gif',
25
+ '.bmp': 'image/bmp',
26
+ '.webp': 'image/webp',
27
+ '.tiff': 'image/tiff',
28
+ '.svg': 'image/svg+xml',
29
+ '.heic': 'image/heic',
30
+ '.ico': 'image/vnd.microsoft.icon',
31
+
32
+ # Audio
33
+ '.mp3': 'audio/mpeg',
34
+ '.wav': 'audio/wav',
35
+ '.ogg': 'audio/ogg',
36
+ '.m4a': 'audio/mp4',
37
+ '.flac': 'audio/flac',
38
+
39
+ # Video
40
+ '.mp4': 'video/mp4',
41
+ '.mov': 'video/quicktime',
42
+ '.avi': 'video/x-msvideo',
43
+ '.wmv': 'video/x-ms-wmv',
44
+ '.webm': 'video/webm',
45
+ '.mkv': 'video/x-matroska',
46
+
47
+ # Archives
48
+ '.zip': 'application/zip',
49
+ '.tar': 'application/x-tar',
50
+ '.gz': 'application/gzip',
51
+ '.rar': 'application/vnd.rar',
52
+ '.7z': 'application/x-7z-compressed',
53
+ '.tar.gz': 'application/gzip', # Special case
54
+ '.tgz': 'application/gzip',
55
+ '.bz2': 'application/x-bzip2',
56
+ '.tar.bz2': 'application/x-bzip2',
57
+
58
+ # Code / Data
59
+ '.json': 'application/json',
60
+ '.xml': 'application/xml',
61
+ '.html': 'text/html',
62
+ '.htm': 'text/html',
63
+ '.css': 'text/css',
64
+ '.js': 'application/javascript',
65
+ '.py': 'text/x-python',
66
+ '.java': 'text/x-java-source',
67
+ '.c': 'text/x-c',
68
+ '.cpp': 'text/x-c++',
69
+ '.ts': 'application/typescript',
70
+ '.yml': 'application/x-yaml',
71
+ '.yaml': 'application/x-yaml',
72
+ '.sql': 'application/sql',
73
+
74
+ # Fonts
75
+ '.woff': 'font/woff',
76
+ '.woff2': 'font/woff2',
77
+ '.ttf': 'font/ttf',
78
+ '.otf': 'font/otf',
79
+
80
+ # Misc
81
+ '.apk': 'application/vnd.android.package-archive',
82
+ '.exe': 'application/vnd.microsoft.portable-executable',
83
+ '.dmg': 'application/x-apple-diskimage',
84
+ '.bat': 'application/x-bat',
85
+ '.sh': 'application/x-sh',
86
+ '.pdfa': 'application/pdf',
87
+ '.webmanifest': 'application/manifest+json',
88
+ }
89
+
90
+ def parse_extension(filename):
91
+ """
92
+ Extract the extension from a filename, handling both single and double extensions,
93
+ and return the extension along with the filename without the extension.
94
+
95
+ Parameters:
96
+ filename (str): The name of the file for which to extract the extension.
97
+
98
+ Returns:
99
+ tuple: A tuple containing the extracted extension (or an empty string if no valid
100
+ extension is found) and the filename without the extension.
101
+ """
102
+ filename = filename.lower()
103
+ parts = filename.rsplit('.', 2) # Max 2 splits: base.name.ext1.ext2
104
+ if len(parts) == 3:
105
+ double_ext = f".{parts[-2]}.{parts[-1]}"
106
+ if double_ext in EXTENSION_TO_MIME:
107
+ return double_ext, '.'.join(parts[:-1])
108
+ ext = f".{parts[-1]}" if '.' in filename else ''
109
+ base_filename = parts[0] if len(parts) == 1 else '.'.join(parts[:-1])
110
+ return ext.lower(), base_filename
111
+
112
+ def guess_type(filename):
113
+ """
114
+ Guess the MIME type of a file based on its extension.
115
+
116
+ This function attempts to determine the MIME type of a file by examining
117
+ its extension. It can handle both single and double extensions, such as
118
+ ".tar.gz" or ".tar.bz2".
119
+
120
+ Parameters:
121
+ filename (str): The name of the file whose MIME type needs to be guessed.
122
+
123
+ Returns:
124
+ str: The guessed MIME type if found in EXTENSION_TO_MIME mapping, or
125
+ 'application/octet-stream' as a default fallback.
126
+ """
127
+ ext, _ = parse_extension(filename)
128
+ return EXTENSION_TO_MIME.get(ext, 'application/octet-stream')
@@ -3,7 +3,6 @@ import os
3
3
  import threading
4
4
  from io import StringIO
5
5
  import csv
6
- import mimetypes
7
6
  import boto3
8
7
 
9
8
  from email.mime.multipart import MIMEMultipart
@@ -25,6 +24,7 @@ from django.template import TemplateDoesNotExist
25
24
 
26
25
  import metrics
27
26
  from rest import settings
27
+ from rest import filetypes
28
28
  from rest.uberdict import UberDict
29
29
  from rest.middleware import get_request
30
30
  from rest.log import getLogger
@@ -163,7 +163,8 @@ def sendMail(msg, sender, recipients, fail_silently=True):
163
163
 
164
164
  def makeAttachment(filename, data):
165
165
  atment = UberDict(name=filename, data=data)
166
- atment.mimetype, junk = mimetypes.MimeTypes().guess_type(filename)
166
+ # atment.mimetype, junk = mimetypes.MimeTypes().guess_type(filename)
167
+ atment.mimetype = filetypes.guess_type(filename)
167
168
  return atment
168
169
 
169
170
 
@@ -1226,8 +1226,8 @@ class RestModel(object):
1226
1226
  @classmethod
1227
1227
  def on_rest_batch(cls, request, action):
1228
1228
  # this method is called when rest_batch='somme action'
1229
- if not ALLOW_BATCHING or not getattr(cls.RestMeta, "CAN_BATCH", True):
1230
- return GRAPH_HELPERS.restStatus(request, False, error="model does not allow batch actions")
1229
+ if not ALLOW_BATCHING or not getattr(cls.RestMeta, "CAN_BATCH", False):
1230
+ raise re.PermissionDeniedException(f"{cls.__name__} model does not allow batch actions", 439)
1231
1231
  cls._boundRest()
1232
1232
  # if not request.member.hasPerm("can_batch_update"):
1233
1233
  # raise re.PermissionDeniedException(f"batch updated not allowed by user")
@@ -1246,7 +1246,7 @@ class RestModel(object):
1246
1246
  if not can_delete:
1247
1247
  raise re.PermissionDeniedException(f"deletion not allowed for {cls.get_class_name()}", 438)
1248
1248
  count = qset.delete()[0]
1249
- return GRAPH_HELPERS.restStatus(request, True, error="delete {} items".format(count))
1249
+ return GRAPH_HELPERS.restStatus(request, True, error="deleted {} items".format(count))
1250
1250
  elif action == "update":
1251
1251
  update_fields = request.DATA.get(["batch_data", "batch_update"])
1252
1252
  if not isinstance(update_fields, dict):