codex 1.6.19__py3-none-any.whl → 1.7.0__py3-none-any.whl

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.

Potentially problematic release.


This version of codex might be problematic. Click here for more details.

Files changed (842) hide show
  1. codex/choices.py +419 -0
  2. codex/choices_to_json.py +122 -0
  3. codex/db.py +134 -0
  4. codex/exceptions.py +2 -3
  5. codex/librarian/bookmark/__init__.py +1 -0
  6. codex/librarian/bookmark/bookmarkd.py +38 -0
  7. codex/librarian/bookmark/tasks.py +19 -0
  8. codex/librarian/bookmark/update.py +154 -0
  9. codex/librarian/covers/coverd.py +3 -4
  10. codex/librarian/covers/create.py +8 -7
  11. codex/librarian/covers/path.py +1 -2
  12. codex/librarian/covers/purge.py +3 -3
  13. codex/librarian/importer/const.py +7 -1
  14. codex/librarian/importer/create_fks.py +5 -2
  15. codex/librarian/importer/importerd.py +17 -12
  16. codex/librarian/importer/moved.py +44 -13
  17. codex/librarian/importer/tasks.py +2 -0
  18. codex/librarian/janitor/cleanup.py +21 -8
  19. codex/librarian/janitor/integrity.py +371 -0
  20. codex/librarian/janitor/janitor.py +50 -15
  21. codex/librarian/janitor/latest_version.py +2 -1
  22. codex/librarian/janitor/status.py +5 -0
  23. codex/librarian/janitor/tasks.py +37 -0
  24. codex/librarian/janitor/update.py +1 -1
  25. codex/librarian/librariand.py +37 -24
  26. codex/librarian/search/optimize.py +43 -0
  27. codex/librarian/search/remove.py +18 -46
  28. codex/librarian/search/searchd.py +14 -17
  29. codex/librarian/search/status.py +2 -1
  30. codex/librarian/search/tasks.py +4 -9
  31. codex/librarian/search/update.py +223 -301
  32. codex/librarian/watchdog/emitter.py +21 -19
  33. codex/librarian/watchdog/event_batcherd.py +0 -1
  34. codex/librarian/watchdog/observers.py +2 -1
  35. codex/migrations/0029_comicfts.py +58 -0
  36. codex/migrations/0030_nocase_collation_day_month_indexes_status_types.py +202 -0
  37. codex/models/admin.py +15 -11
  38. codex/models/base.py +9 -0
  39. codex/models/bookmark.py +3 -3
  40. codex/models/comic.py +68 -16
  41. codex/models/functions.py +60 -2
  42. codex/models/groups.py +6 -1
  43. codex/models/library.py +1 -3
  44. codex/models/paths.py +9 -3
  45. codex/models/query.py +6 -0
  46. codex/run.py +11 -9
  47. codex/serializers/admin/tasks.py +2 -2
  48. codex/serializers/browser/mixins.py +18 -14
  49. codex/serializers/browser/page.py +2 -0
  50. codex/serializers/browser/settings.py +4 -4
  51. codex/serializers/fields.py +9 -5
  52. codex/settings/settings.py +16 -17
  53. codex/signals/django_signals.py +4 -10
  54. codex/startup.py +7 -39
  55. codex/static_root/assets/VCheckbox-D_CWEmqR.84f2b49311e8.js +1 -0
  56. codex/static_root/assets/VCheckbox-D_CWEmqR.84f2b49311e8.js.br +0 -0
  57. codex/static_root/assets/VCheckbox-D_CWEmqR.84f2b49311e8.js.gz +0 -0
  58. codex/static_root/assets/VCheckbox-D_CWEmqR.js +1 -0
  59. codex/static_root/assets/VCheckbox-D_CWEmqR.js.br +0 -0
  60. codex/static_root/assets/VCheckbox-D_CWEmqR.js.gz +0 -0
  61. codex/static_root/assets/VCheckboxBtn-B1BhcFvi.0eaf3c516474.js +1 -0
  62. codex/static_root/assets/VCheckboxBtn-B1BhcFvi.0eaf3c516474.js.br +0 -0
  63. codex/static_root/assets/VCheckboxBtn-B1BhcFvi.0eaf3c516474.js.gz +0 -0
  64. codex/static_root/assets/VCheckboxBtn-B1BhcFvi.js +1 -0
  65. codex/static_root/assets/VCheckboxBtn-B1BhcFvi.js.br +0 -0
  66. codex/static_root/assets/VCheckboxBtn-B1BhcFvi.js.gz +0 -0
  67. codex/static_root/assets/VCombobox-CZAW6_3Q.0e2401e819a5.js +1 -0
  68. codex/static_root/assets/VCombobox-CZAW6_3Q.0e2401e819a5.js.br +0 -0
  69. codex/static_root/assets/VCombobox-CZAW6_3Q.0e2401e819a5.js.gz +0 -0
  70. codex/static_root/assets/VCombobox-CZAW6_3Q.js +1 -0
  71. codex/static_root/assets/VCombobox-CZAW6_3Q.js.br +0 -0
  72. codex/static_root/assets/VCombobox-CZAW6_3Q.js.gz +0 -0
  73. codex/static_root/assets/VDialog-CSHgHIlG.a0bcd336cb7b.js +1 -0
  74. codex/static_root/assets/VDialog-CSHgHIlG.a0bcd336cb7b.js.br +0 -0
  75. codex/static_root/assets/VDialog-CSHgHIlG.a0bcd336cb7b.js.gz +0 -0
  76. codex/static_root/assets/VDialog-CSHgHIlG.js +1 -0
  77. codex/static_root/assets/VDialog-CSHgHIlG.js.br +0 -0
  78. codex/static_root/assets/VDialog-CSHgHIlG.js.gz +0 -0
  79. codex/static_root/assets/VDialog-CSvrKKb2.css +1 -0
  80. codex/static_root/assets/VDialog-CSvrKKb2.css.br +0 -0
  81. codex/static_root/assets/VDialog-CSvrKKb2.css.gz +0 -0
  82. codex/static_root/assets/VDialog-CSvrKKb2.fd4d50904b17.css +1 -0
  83. codex/static_root/assets/VDialog-CSvrKKb2.fd4d50904b17.css.br +0 -0
  84. codex/static_root/assets/VDialog-CSvrKKb2.fd4d50904b17.css.gz +0 -0
  85. codex/static_root/assets/VExpansionPanels-CG6MpdMC.e96ae8afad97.js +1 -0
  86. codex/static_root/assets/VExpansionPanels-CG6MpdMC.e96ae8afad97.js.br +0 -0
  87. codex/static_root/assets/VExpansionPanels-CG6MpdMC.e96ae8afad97.js.gz +0 -0
  88. codex/static_root/assets/VExpansionPanels-CG6MpdMC.js +1 -0
  89. codex/static_root/assets/VExpansionPanels-CG6MpdMC.js.br +0 -0
  90. codex/static_root/assets/VExpansionPanels-CG6MpdMC.js.gz +0 -0
  91. codex/static_root/assets/VRadioGroup-CAgQxkiU.f26ecb0c3e34.js +1 -0
  92. codex/static_root/assets/VRadioGroup-CAgQxkiU.f26ecb0c3e34.js.br +0 -0
  93. codex/static_root/assets/VRadioGroup-CAgQxkiU.f26ecb0c3e34.js.gz +0 -0
  94. codex/static_root/assets/VRadioGroup-CAgQxkiU.js +1 -0
  95. codex/static_root/assets/VRadioGroup-CAgQxkiU.js.br +0 -0
  96. codex/static_root/assets/VRadioGroup-CAgQxkiU.js.gz +0 -0
  97. codex/static_root/assets/VSelect-C1gez8rl.9b11d2f00faf.js +1 -0
  98. codex/static_root/assets/VSelect-C1gez8rl.9b11d2f00faf.js.br +0 -0
  99. codex/static_root/assets/VSelect-C1gez8rl.9b11d2f00faf.js.gz +0 -0
  100. codex/static_root/assets/VSelect-C1gez8rl.js +1 -0
  101. codex/static_root/assets/VSelect-C1gez8rl.js.br +0 -0
  102. codex/static_root/assets/VSelect-C1gez8rl.js.gz +0 -0
  103. codex/static_root/assets/VSelect-DLu8bpcs.98bdcf35411c.css +1 -0
  104. codex/static_root/assets/VSelect-DLu8bpcs.98bdcf35411c.css.br +0 -0
  105. codex/static_root/assets/VSelect-DLu8bpcs.98bdcf35411c.css.gz +0 -0
  106. codex/static_root/assets/VSelect-DLu8bpcs.css +1 -0
  107. codex/static_root/assets/VSelect-DLu8bpcs.css.br +0 -0
  108. codex/static_root/assets/VSelect-DLu8bpcs.css.gz +0 -0
  109. codex/static_root/assets/VSelectionControl-DBqDlKjK.160beaa1b56c.js +1 -0
  110. codex/static_root/assets/VSelectionControl-DBqDlKjK.160beaa1b56c.js.br +0 -0
  111. codex/static_root/assets/VSelectionControl-DBqDlKjK.160beaa1b56c.js.gz +0 -0
  112. codex/static_root/assets/VSelectionControl-DBqDlKjK.js +1 -0
  113. codex/static_root/assets/VSelectionControl-DBqDlKjK.js.br +0 -0
  114. codex/static_root/assets/VSelectionControl-DBqDlKjK.js.gz +0 -0
  115. codex/static_root/assets/VSlideGroup-BtXPhMOT.830f136ffd41.css +1 -0
  116. codex/static_root/assets/VSlideGroup-BtXPhMOT.830f136ffd41.css.br +0 -0
  117. codex/static_root/assets/VSlideGroup-BtXPhMOT.830f136ffd41.css.gz +0 -0
  118. codex/static_root/assets/VSlideGroup-BtXPhMOT.css +1 -0
  119. codex/static_root/assets/VSlideGroup-BtXPhMOT.css.br +0 -0
  120. codex/static_root/assets/VSlideGroup-BtXPhMOT.css.gz +0 -0
  121. codex/static_root/assets/VSlideGroup-SqR_NAL1.40ba1d838a6e.js +1 -0
  122. codex/static_root/assets/VSlideGroup-SqR_NAL1.40ba1d838a6e.js.br +0 -0
  123. codex/static_root/assets/VSlideGroup-SqR_NAL1.40ba1d838a6e.js.gz +0 -0
  124. codex/static_root/assets/VSlideGroup-SqR_NAL1.js +1 -0
  125. codex/static_root/assets/VSlideGroup-SqR_NAL1.js.br +0 -0
  126. codex/static_root/assets/VSlideGroup-SqR_NAL1.js.gz +0 -0
  127. codex/static_root/assets/VTable-CYC-wMpk.8f15d66044da.js +1 -0
  128. codex/static_root/assets/VTable-CYC-wMpk.8f15d66044da.js.br +0 -0
  129. codex/static_root/assets/VTable-CYC-wMpk.8f15d66044da.js.gz +0 -0
  130. codex/static_root/assets/VTable-CYC-wMpk.js +1 -0
  131. codex/static_root/assets/VTable-CYC-wMpk.js.br +0 -0
  132. codex/static_root/assets/VTable-CYC-wMpk.js.gz +0 -0
  133. codex/static_root/assets/VTextField-BnCEPZIq.b0c32b2c0b14.css +1 -0
  134. codex/static_root/assets/VTextField-BnCEPZIq.b0c32b2c0b14.css.br +0 -0
  135. codex/static_root/assets/VTextField-BnCEPZIq.b0c32b2c0b14.css.gz +0 -0
  136. codex/static_root/assets/VTextField-BnCEPZIq.css +1 -0
  137. codex/static_root/assets/VTextField-BnCEPZIq.css.br +0 -0
  138. codex/static_root/assets/VTextField-BnCEPZIq.css.gz +0 -0
  139. codex/static_root/assets/VTextField-DMRKRbbT.911ac84d8c9d.js +1 -0
  140. codex/static_root/assets/VTextField-DMRKRbbT.911ac84d8c9d.js.br +0 -0
  141. codex/static_root/assets/VTextField-DMRKRbbT.911ac84d8c9d.js.gz +0 -0
  142. codex/static_root/assets/VTextField-DMRKRbbT.js +1 -0
  143. codex/static_root/assets/VTextField-DMRKRbbT.js.br +0 -0
  144. codex/static_root/assets/VTextField-DMRKRbbT.js.gz +0 -0
  145. codex/static_root/assets/VWindowItem-D0P2xNJl.6a10e3f3a153.js +1 -0
  146. codex/static_root/assets/VWindowItem-D0P2xNJl.6a10e3f3a153.js.br +0 -0
  147. codex/static_root/assets/VWindowItem-D0P2xNJl.6a10e3f3a153.js.gz +0 -0
  148. codex/static_root/assets/VWindowItem-D0P2xNJl.js +1 -0
  149. codex/static_root/assets/VWindowItem-D0P2xNJl.js.br +0 -0
  150. codex/static_root/assets/VWindowItem-D0P2xNJl.js.gz +0 -0
  151. codex/static_root/assets/admin-CD90VMen.4c2b6f2a5111.js +1 -0
  152. codex/static_root/assets/admin-CD90VMen.4c2b6f2a5111.js.br +0 -0
  153. codex/static_root/assets/admin-CD90VMen.4c2b6f2a5111.js.gz +0 -0
  154. codex/static_root/assets/admin-CD90VMen.js +1 -0
  155. codex/static_root/assets/admin-CD90VMen.js.br +0 -0
  156. codex/static_root/assets/admin-CD90VMen.js.gz +0 -0
  157. codex/static_root/assets/{admin-CWEjaFr5.7d4523387384.css → admin-DJ7pIXDQ.css} +1 -1
  158. codex/static_root/assets/admin-DJ7pIXDQ.css.br +0 -0
  159. codex/static_root/assets/admin-DJ7pIXDQ.css.gz +0 -0
  160. codex/static_root/assets/{admin-CWEjaFr5.css → admin-DJ7pIXDQ.e2a77af73ef2.css} +1 -1
  161. codex/static_root/assets/admin-DJ7pIXDQ.e2a77af73ef2.css.br +0 -0
  162. codex/static_root/assets/admin-DJ7pIXDQ.e2a77af73ef2.css.gz +0 -0
  163. codex/static_root/assets/admin-menu-B9bzD6hV.c13b7df2ff57.css +1 -0
  164. codex/static_root/assets/admin-menu-B9bzD6hV.c13b7df2ff57.css.br +0 -0
  165. codex/static_root/assets/admin-menu-B9bzD6hV.c13b7df2ff57.css.gz +0 -0
  166. codex/static_root/assets/admin-menu-B9bzD6hV.css +1 -0
  167. codex/static_root/assets/admin-menu-B9bzD6hV.css.br +0 -0
  168. codex/static_root/assets/admin-menu-B9bzD6hV.css.gz +0 -0
  169. codex/static_root/assets/admin-menu-BpEPGKr_.c9f9178c5a82.js +1 -0
  170. codex/static_root/assets/admin-menu-BpEPGKr_.c9f9178c5a82.js.br +0 -0
  171. codex/static_root/assets/admin-menu-BpEPGKr_.c9f9178c5a82.js.gz +0 -0
  172. codex/static_root/assets/admin-menu-BpEPGKr_.js +1 -0
  173. codex/static_root/assets/admin-menu-BpEPGKr_.js.br +0 -0
  174. codex/static_root/assets/admin-menu-BpEPGKr_.js.gz +0 -0
  175. codex/static_root/assets/admin-settings-button-progress-DDF4rY07.4f1158b650ab.js +1 -0
  176. codex/static_root/assets/admin-settings-button-progress-DDF4rY07.4f1158b650ab.js.br +0 -0
  177. codex/static_root/assets/admin-settings-button-progress-DDF4rY07.4f1158b650ab.js.gz +0 -0
  178. codex/static_root/assets/admin-settings-button-progress-DDF4rY07.js +1 -0
  179. codex/static_root/assets/admin-settings-button-progress-DDF4rY07.js.br +0 -0
  180. codex/static_root/assets/admin-settings-button-progress-DDF4rY07.js.gz +0 -0
  181. codex/static_root/assets/admin-settings-button-progress-DUUQfVsZ.2548c49a853e.css +1 -0
  182. codex/static_root/assets/admin-settings-button-progress-DUUQfVsZ.css +1 -0
  183. codex/static_root/assets/browser-C0KS3g2E.0bf1c9c6319c.js +1 -0
  184. codex/static_root/assets/browser-C0KS3g2E.0bf1c9c6319c.js.br +0 -0
  185. codex/static_root/assets/browser-C0KS3g2E.0bf1c9c6319c.js.gz +0 -0
  186. codex/static_root/assets/browser-C0KS3g2E.js +1 -0
  187. codex/static_root/assets/browser-C0KS3g2E.js.br +0 -0
  188. codex/static_root/assets/browser-C0KS3g2E.js.gz +0 -0
  189. codex/static_root/assets/browser-JFL2hLjt.21cb2f7335f7.css +1 -0
  190. codex/static_root/assets/browser-JFL2hLjt.21cb2f7335f7.css.br +0 -0
  191. codex/static_root/assets/browser-JFL2hLjt.21cb2f7335f7.css.gz +0 -0
  192. codex/static_root/assets/browser-JFL2hLjt.css +1 -0
  193. codex/static_root/assets/browser-JFL2hLjt.css.br +0 -0
  194. codex/static_root/assets/browser-JFL2hLjt.css.gz +0 -0
  195. codex/static_root/assets/change-password-dialog-DXJalgW4.a9f34729599d.js +1 -0
  196. codex/static_root/assets/change-password-dialog-DXJalgW4.a9f34729599d.js.br +0 -0
  197. codex/static_root/assets/change-password-dialog-DXJalgW4.a9f34729599d.js.gz +0 -0
  198. codex/static_root/assets/change-password-dialog-DXJalgW4.js +1 -0
  199. codex/static_root/assets/change-password-dialog-DXJalgW4.js.br +0 -0
  200. codex/static_root/assets/change-password-dialog-DXJalgW4.js.gz +0 -0
  201. codex/static_root/assets/change-password-dialog-DrIXdKUC.217574b45b02.css +1 -0
  202. codex/static_root/assets/change-password-dialog-DrIXdKUC.217574b45b02.css.br +0 -0
  203. codex/static_root/assets/change-password-dialog-DrIXdKUC.217574b45b02.css.gz +0 -0
  204. codex/static_root/assets/change-password-dialog-DrIXdKUC.css +1 -0
  205. codex/static_root/assets/change-password-dialog-DrIXdKUC.css.br +0 -0
  206. codex/static_root/assets/change-password-dialog-DrIXdKUC.css.gz +0 -0
  207. codex/static_root/assets/confirm-dialog-B7w6z2rf.472011c06253.css +1 -0
  208. codex/static_root/assets/confirm-dialog-B7w6z2rf.css +1 -0
  209. codex/static_root/assets/confirm-dialog-CqDEpU9k.e1811488121d.js +1 -0
  210. codex/static_root/assets/confirm-dialog-CqDEpU9k.e1811488121d.js.br +0 -0
  211. codex/static_root/assets/confirm-dialog-CqDEpU9k.e1811488121d.js.gz +0 -0
  212. codex/static_root/assets/confirm-dialog-CqDEpU9k.js +1 -0
  213. codex/static_root/assets/confirm-dialog-CqDEpU9k.js.br +0 -0
  214. codex/static_root/assets/confirm-dialog-CqDEpU9k.js.gz +0 -0
  215. codex/static_root/assets/datetime-column-UxNaJr8b.c06a11531af3.js +1 -0
  216. codex/static_root/assets/datetime-column-UxNaJr8b.c06a11531af3.js.br +0 -0
  217. codex/static_root/assets/datetime-column-UxNaJr8b.c06a11531af3.js.gz +0 -0
  218. codex/static_root/assets/datetime-column-UxNaJr8b.js +1 -0
  219. codex/static_root/assets/datetime-column-UxNaJr8b.js.br +0 -0
  220. codex/static_root/assets/datetime-column-UxNaJr8b.js.gz +0 -0
  221. codex/static_root/assets/filter-DskcqZHA.e707b5a05b4b.js +1 -0
  222. codex/static_root/assets/filter-DskcqZHA.e707b5a05b4b.js.br +0 -0
  223. codex/static_root/assets/filter-DskcqZHA.e707b5a05b4b.js.gz +0 -0
  224. codex/static_root/assets/filter-DskcqZHA.js +1 -0
  225. codex/static_root/assets/filter-DskcqZHA.js.br +0 -0
  226. codex/static_root/assets/filter-DskcqZHA.js.gz +0 -0
  227. codex/static_root/assets/flag-tab-CqWovuBu.4dfc6b251e85.css +1 -0
  228. codex/static_root/assets/flag-tab-CqWovuBu.4dfc6b251e85.css.br +0 -0
  229. codex/static_root/assets/flag-tab-CqWovuBu.4dfc6b251e85.css.gz +0 -0
  230. codex/static_root/assets/flag-tab-CqWovuBu.css +1 -0
  231. codex/static_root/assets/flag-tab-CqWovuBu.css.br +0 -0
  232. codex/static_root/assets/flag-tab-CqWovuBu.css.gz +0 -0
  233. codex/static_root/assets/flag-tab-xBeWEQ0w.582e77d9e885.js +1 -0
  234. codex/static_root/assets/flag-tab-xBeWEQ0w.582e77d9e885.js.br +0 -0
  235. codex/static_root/assets/flag-tab-xBeWEQ0w.582e77d9e885.js.gz +0 -0
  236. codex/static_root/assets/flag-tab-xBeWEQ0w.js +1 -0
  237. codex/static_root/assets/flag-tab-xBeWEQ0w.js.br +0 -0
  238. codex/static_root/assets/flag-tab-xBeWEQ0w.js.gz +0 -0
  239. codex/static_root/assets/group-tab-Czt2x61x.56e2886b1bac.js +1 -0
  240. codex/static_root/assets/group-tab-Czt2x61x.56e2886b1bac.js.br +0 -0
  241. codex/static_root/assets/group-tab-Czt2x61x.56e2886b1bac.js.gz +0 -0
  242. codex/static_root/assets/group-tab-Czt2x61x.js +1 -0
  243. codex/static_root/assets/group-tab-Czt2x61x.js.br +0 -0
  244. codex/static_root/assets/group-tab-Czt2x61x.js.gz +0 -0
  245. codex/static_root/assets/group-tab-DkIN1Heu.948e907b1e6b.css +1 -0
  246. codex/static_root/assets/group-tab-DkIN1Heu.948e907b1e6b.css.br +0 -0
  247. codex/static_root/assets/group-tab-DkIN1Heu.948e907b1e6b.css.gz +0 -0
  248. codex/static_root/assets/group-tab-DkIN1Heu.css +1 -0
  249. codex/static_root/assets/group-tab-DkIN1Heu.css.br +0 -0
  250. codex/static_root/assets/group-tab-DkIN1Heu.css.gz +0 -0
  251. codex/static_root/assets/http-error-NHcwE5e_.d49089e40589.js +1 -0
  252. codex/static_root/assets/http-error-NHcwE5e_.d49089e40589.js.br +0 -0
  253. codex/static_root/assets/http-error-NHcwE5e_.d49089e40589.js.gz +0 -0
  254. codex/static_root/assets/http-error-NHcwE5e_.js +1 -0
  255. codex/static_root/assets/http-error-NHcwE5e_.js.br +0 -0
  256. codex/static_root/assets/http-error-NHcwE5e_.js.gz +0 -0
  257. codex/static_root/assets/index-CL_6g4tJ.523d7b3d350f.css +1 -0
  258. codex/static_root/assets/index-CL_6g4tJ.523d7b3d350f.css.br +0 -0
  259. codex/static_root/assets/index-CL_6g4tJ.523d7b3d350f.css.gz +0 -0
  260. codex/static_root/assets/index-CL_6g4tJ.css +1 -0
  261. codex/static_root/assets/index-CL_6g4tJ.css.br +0 -0
  262. codex/static_root/assets/index-CL_6g4tJ.css.gz +0 -0
  263. codex/static_root/assets/index-DYNNO5kn.24a2d270253a.js +1 -0
  264. codex/static_root/assets/index-DYNNO5kn.24a2d270253a.js.br +0 -0
  265. codex/static_root/assets/index-DYNNO5kn.24a2d270253a.js.gz +0 -0
  266. codex/static_root/assets/index-DYNNO5kn.js +1 -0
  267. codex/static_root/assets/index-DYNNO5kn.js.br +0 -0
  268. codex/static_root/assets/index-DYNNO5kn.js.gz +0 -0
  269. codex/static_root/assets/library-tab-CgIqcjvj.60327dfa8ecb.js +1 -0
  270. codex/static_root/assets/library-tab-CgIqcjvj.60327dfa8ecb.js.br +0 -0
  271. codex/static_root/assets/library-tab-CgIqcjvj.60327dfa8ecb.js.gz +0 -0
  272. codex/static_root/assets/library-tab-CgIqcjvj.js +1 -0
  273. codex/static_root/assets/library-tab-CgIqcjvj.js.br +0 -0
  274. codex/static_root/assets/library-tab-CgIqcjvj.js.gz +0 -0
  275. codex/static_root/assets/{library-tab-Bh7ErAk7.7c44200ee727.css → library-tab-Wew8YOLv.0c1780a6b68e.css} +1 -1
  276. codex/static_root/assets/library-tab-Wew8YOLv.0c1780a6b68e.css.br +0 -0
  277. codex/static_root/assets/library-tab-Wew8YOLv.0c1780a6b68e.css.gz +0 -0
  278. codex/static_root/assets/{library-tab-Bh7ErAk7.css → library-tab-Wew8YOLv.css} +1 -1
  279. codex/static_root/assets/library-tab-Wew8YOLv.css.br +0 -0
  280. codex/static_root/assets/library-tab-Wew8YOLv.css.gz +0 -0
  281. codex/static_root/assets/main-B3EwXQ3Q.14dfc21e272c.js +35 -0
  282. codex/static_root/assets/main-B3EwXQ3Q.14dfc21e272c.js.br +0 -0
  283. codex/static_root/assets/main-B3EwXQ3Q.14dfc21e272c.js.gz +0 -0
  284. codex/static_root/assets/main-B3EwXQ3Q.js +35 -0
  285. codex/static_root/assets/main-B3EwXQ3Q.js.br +0 -0
  286. codex/static_root/assets/main-B3EwXQ3Q.js.gz +0 -0
  287. codex/static_root/assets/pager-full-pdf-YkzUXx0B.f39d84e2380a.js +1 -0
  288. codex/static_root/assets/pager-full-pdf-YkzUXx0B.f39d84e2380a.js.br +0 -0
  289. codex/static_root/assets/pager-full-pdf-YkzUXx0B.f39d84e2380a.js.gz +0 -0
  290. codex/static_root/assets/pager-full-pdf-YkzUXx0B.js +1 -0
  291. codex/static_root/assets/pager-full-pdf-YkzUXx0B.js.br +0 -0
  292. codex/static_root/assets/pager-full-pdf-YkzUXx0B.js.gz +0 -0
  293. codex/static_root/assets/pagination-toolbar-CrruiVov.3bf9b795350d.js +1 -0
  294. codex/static_root/assets/pagination-toolbar-CrruiVov.3bf9b795350d.js.br +0 -0
  295. codex/static_root/assets/pagination-toolbar-CrruiVov.3bf9b795350d.js.gz +0 -0
  296. codex/static_root/assets/pagination-toolbar-CrruiVov.js +1 -0
  297. codex/static_root/assets/pagination-toolbar-CrruiVov.js.br +0 -0
  298. codex/static_root/assets/pagination-toolbar-CrruiVov.js.gz +0 -0
  299. codex/static_root/assets/{pagination-toolbar-C45-onwe.4722195bb60b.css → pagination-toolbar-DGrxp2OD.css} +1 -1
  300. codex/static_root/assets/pagination-toolbar-DGrxp2OD.css.br +0 -0
  301. codex/static_root/assets/pagination-toolbar-DGrxp2OD.css.gz +0 -0
  302. codex/static_root/assets/{pagination-toolbar-C45-onwe.css → pagination-toolbar-DGrxp2OD.f960a624f04f.css} +1 -1
  303. codex/static_root/assets/pagination-toolbar-DGrxp2OD.f960a624f04f.css.br +0 -0
  304. codex/static_root/assets/pagination-toolbar-DGrxp2OD.f960a624f04f.css.gz +0 -0
  305. codex/static_root/assets/{pdf-doc-BjlRPuf4.0f056fa321b6.js → pdf-doc-ctqZIwOP.7e7b2c815ea4.js} +3 -3
  306. codex/static_root/assets/pdf-doc-ctqZIwOP.7e7b2c815ea4.js.br +0 -0
  307. codex/static_root/assets/pdf-doc-ctqZIwOP.7e7b2c815ea4.js.gz +0 -0
  308. codex/static_root/assets/{pdf-doc-BjlRPuf4.js → pdf-doc-ctqZIwOP.js} +3 -3
  309. codex/static_root/assets/pdf-doc-ctqZIwOP.js.br +0 -0
  310. codex/static_root/assets/pdf-doc-ctqZIwOP.js.gz +0 -0
  311. codex/static_root/assets/reader-DPLhdrJD.268417c618c5.js +2 -0
  312. codex/static_root/assets/reader-DPLhdrJD.268417c618c5.js.br +0 -0
  313. codex/static_root/assets/reader-DPLhdrJD.268417c618c5.js.gz +0 -0
  314. codex/static_root/assets/reader-DPLhdrJD.js +2 -0
  315. codex/static_root/assets/reader-DPLhdrJD.js.br +0 -0
  316. codex/static_root/assets/reader-DPLhdrJD.js.gz +0 -0
  317. codex/static_root/assets/reader-nD70BeEz.06e85e73c391.css +1 -0
  318. codex/static_root/assets/reader-nD70BeEz.06e85e73c391.css.br +0 -0
  319. codex/static_root/assets/reader-nD70BeEz.06e85e73c391.css.gz +0 -0
  320. codex/static_root/assets/reader-nD70BeEz.css +1 -0
  321. codex/static_root/assets/reader-nD70BeEz.css.br +0 -0
  322. codex/static_root/assets/reader-nD70BeEz.css.gz +0 -0
  323. codex/static_root/assets/relation-chips-DOALMcWL.5d3b8100ba03.js +1 -0
  324. codex/static_root/assets/relation-chips-DOALMcWL.5d3b8100ba03.js.br +0 -0
  325. codex/static_root/assets/relation-chips-DOALMcWL.5d3b8100ba03.js.gz +0 -0
  326. codex/static_root/assets/relation-chips-DOALMcWL.js +1 -0
  327. codex/static_root/assets/relation-chips-DOALMcWL.js.br +0 -0
  328. codex/static_root/assets/relation-chips-DOALMcWL.js.gz +0 -0
  329. codex/static_root/assets/settings-drawer-BVj1U_LC.c68369e0c2de.js +2 -0
  330. codex/static_root/assets/settings-drawer-BVj1U_LC.c68369e0c2de.js.br +0 -0
  331. codex/static_root/assets/settings-drawer-BVj1U_LC.c68369e0c2de.js.gz +0 -0
  332. codex/static_root/assets/settings-drawer-BVj1U_LC.js +2 -0
  333. codex/static_root/assets/settings-drawer-BVj1U_LC.js.br +0 -0
  334. codex/static_root/assets/settings-drawer-BVj1U_LC.js.gz +0 -0
  335. codex/static_root/assets/{stats-tab-BXGisn5N.9b7a71e7fe28.css → stats-tab-BAYTqQNg.5f715428c394.css} +1 -1
  336. codex/static_root/assets/stats-tab-BAYTqQNg.5f715428c394.css.br +0 -0
  337. codex/static_root/assets/stats-tab-BAYTqQNg.5f715428c394.css.gz +0 -0
  338. codex/static_root/assets/{stats-tab-BXGisn5N.css → stats-tab-BAYTqQNg.css} +1 -1
  339. codex/static_root/assets/stats-tab-BAYTqQNg.css.br +0 -0
  340. codex/static_root/assets/stats-tab-BAYTqQNg.css.gz +0 -0
  341. codex/static_root/assets/stats-tab-DDLwwwnP.35305258097b.js +1 -0
  342. codex/static_root/assets/stats-tab-DDLwwwnP.35305258097b.js.br +0 -0
  343. codex/static_root/assets/stats-tab-DDLwwwnP.35305258097b.js.gz +0 -0
  344. codex/static_root/assets/stats-tab-DDLwwwnP.js +1 -0
  345. codex/static_root/assets/stats-tab-DDLwwwnP.js.br +0 -0
  346. codex/static_root/assets/stats-tab-DDLwwwnP.js.gz +0 -0
  347. codex/static_root/assets/task-tab--cXi48kg.5dfd6890a1c2.css +1 -0
  348. codex/static_root/assets/{task-tab-1XiWn9xP.06cb8e1b794d.css.br → task-tab--cXi48kg.5dfd6890a1c2.css.br} +1 -1
  349. codex/static_root/assets/task-tab--cXi48kg.5dfd6890a1c2.css.gz +0 -0
  350. codex/static_root/assets/task-tab--cXi48kg.css +1 -0
  351. codex/static_root/assets/{task-tab-1XiWn9xP.css.br → task-tab--cXi48kg.css.br} +1 -1
  352. codex/static_root/assets/task-tab--cXi48kg.css.gz +0 -0
  353. codex/static_root/assets/task-tab-BpP3n2dO.c853eb565200.js +1 -0
  354. codex/static_root/assets/task-tab-BpP3n2dO.c853eb565200.js.br +0 -0
  355. codex/static_root/assets/task-tab-BpP3n2dO.c853eb565200.js.gz +0 -0
  356. codex/static_root/assets/task-tab-BpP3n2dO.js +1 -0
  357. codex/static_root/assets/task-tab-BpP3n2dO.js.br +0 -0
  358. codex/static_root/assets/task-tab-BpP3n2dO.js.gz +0 -0
  359. codex/static_root/assets/transition-3g2arGgl.c6e6f91b7978.js +1 -0
  360. codex/static_root/assets/transition-3g2arGgl.c6e6f91b7978.js.br +0 -0
  361. codex/static_root/assets/transition-3g2arGgl.c6e6f91b7978.js.gz +0 -0
  362. codex/static_root/assets/transition-3g2arGgl.js +1 -0
  363. codex/static_root/assets/transition-3g2arGgl.js.br +0 -0
  364. codex/static_root/assets/transition-3g2arGgl.js.gz +0 -0
  365. codex/static_root/assets/transition-5LRFTPo5.3d726f9bbcb0.css +1 -0
  366. codex/static_root/assets/transition-5LRFTPo5.3d726f9bbcb0.css.br +4 -0
  367. codex/static_root/assets/transition-5LRFTPo5.3d726f9bbcb0.css.gz +0 -0
  368. codex/static_root/assets/transition-5LRFTPo5.css +1 -0
  369. codex/static_root/assets/transition-5LRFTPo5.css.br +4 -0
  370. codex/static_root/assets/transition-5LRFTPo5.css.gz +0 -0
  371. codex/static_root/assets/{unauthorized-muDsv-rC.css → unauthorized-BjhIc97q.728511c92cd0.css} +1 -1
  372. codex/static_root/assets/unauthorized-BjhIc97q.728511c92cd0.css.br +0 -0
  373. codex/static_root/assets/unauthorized-BjhIc97q.728511c92cd0.css.gz +0 -0
  374. codex/static_root/assets/{unauthorized-muDsv-rC.2166ec8b3a32.css → unauthorized-BjhIc97q.css} +1 -1
  375. codex/static_root/assets/unauthorized-BjhIc97q.css.br +0 -0
  376. codex/static_root/assets/unauthorized-BjhIc97q.css.gz +0 -0
  377. codex/static_root/assets/unauthorized-CdumQ1Vf.79d9a61eb572.js +1 -0
  378. codex/static_root/assets/unauthorized-CdumQ1Vf.79d9a61eb572.js.br +0 -0
  379. codex/static_root/assets/unauthorized-CdumQ1Vf.79d9a61eb572.js.gz +0 -0
  380. codex/static_root/assets/unauthorized-CdumQ1Vf.js +1 -0
  381. codex/static_root/assets/unauthorized-CdumQ1Vf.js.br +0 -0
  382. codex/static_root/assets/unauthorized-CdumQ1Vf.js.gz +0 -0
  383. codex/static_root/assets/user-tab-D6oOKZTP.05944b00c700.js +1 -0
  384. codex/static_root/assets/user-tab-D6oOKZTP.05944b00c700.js.br +0 -0
  385. codex/static_root/assets/user-tab-D6oOKZTP.05944b00c700.js.gz +0 -0
  386. codex/static_root/assets/user-tab-D6oOKZTP.js +1 -0
  387. codex/static_root/assets/user-tab-D6oOKZTP.js.br +0 -0
  388. codex/static_root/assets/user-tab-D6oOKZTP.js.gz +0 -0
  389. codex/static_root/manifest.c5f1de88b1ac.json +712 -0
  390. codex/static_root/manifest.c5f1de88b1ac.json.br +0 -0
  391. codex/static_root/manifest.c5f1de88b1ac.json.gz +0 -0
  392. codex/static_root/manifest.json +371 -294
  393. codex/static_root/manifest.json.br +0 -0
  394. codex/static_root/manifest.json.gz +0 -0
  395. codex/static_root/staticfiles.json +1 -1
  396. codex/status_controller.py +15 -10
  397. codex/threads.py +1 -1
  398. codex/urls/api/auth.py +1 -1
  399. codex/urls/api/browser.py +1 -1
  400. codex/views/admin/library.py +18 -13
  401. codex/views/admin/stats.py +23 -16
  402. codex/views/admin/tasks.py +45 -40
  403. codex/views/auth.py +50 -74
  404. codex/views/bookmark.py +16 -153
  405. codex/views/browser/annotate/__init__.py +1 -0
  406. codex/views/browser/annotate/bookmark.py +112 -0
  407. codex/views/browser/annotate/card.py +61 -0
  408. codex/views/browser/annotate/order.py +247 -0
  409. codex/views/browser/breadcrumbs.py +90 -11
  410. codex/views/browser/browser.py +82 -117
  411. codex/views/browser/choices.py +15 -18
  412. codex/views/browser/cover.py +18 -24
  413. codex/views/browser/filters/bookmark.py +18 -19
  414. codex/views/browser/filters/field.py +8 -3
  415. codex/views/browser/filters/filter.py +69 -0
  416. codex/views/browser/filters/group.py +9 -6
  417. codex/views/browser/filters/search/__init__.py +1 -0
  418. codex/views/browser/filters/search/aliases.py +81 -0
  419. codex/views/browser/filters/search/field/__init__.py +1 -0
  420. codex/views/browser/filters/search/field/column.py +53 -0
  421. codex/views/browser/filters/search/field/expression.py +177 -0
  422. codex/views/browser/filters/search/field/filter.py +70 -0
  423. codex/views/browser/filters/search/field/optimize.py +71 -0
  424. codex/views/browser/filters/search/field/parse.py +187 -0
  425. codex/views/browser/filters/search/fts.py +24 -0
  426. codex/views/browser/filters/search/parse.py +250 -0
  427. codex/views/browser/group_mtime.py +83 -0
  428. codex/views/browser/metadata/__init__.py +1 -0
  429. codex/views/browser/metadata/annotate.py +109 -0
  430. codex/views/browser/metadata/copy_intersections.py +90 -0
  431. codex/views/browser/metadata/metadata.py +83 -0
  432. codex/views/browser/metadata/query_intersections.py +112 -0
  433. codex/views/browser/mtime.py +2 -10
  434. codex/views/browser/order_by.py +22 -16
  435. codex/views/browser/page_in_bounds.py +88 -0
  436. codex/views/browser/paginate.py +32 -123
  437. codex/views/browser/params.py +64 -0
  438. codex/views/browser/title.py +1 -6
  439. codex/views/browser/validate.py +68 -33
  440. codex/views/const.py +0 -1
  441. codex/views/download.py +1 -1
  442. codex/views/mixins.py +27 -15
  443. codex/views/opds/const.py +2 -3
  444. codex/views/opds/urls.py +2 -2
  445. codex/views/opds/util.py +2 -3
  446. codex/views/opds/v1/entry/links.py +3 -1
  447. codex/views/opds/v1/facets.py +65 -12
  448. codex/views/opds/v1/feed.py +7 -65
  449. codex/views/opds/v1/links.py +5 -4
  450. codex/views/opds/v2/feed.py +2 -28
  451. codex/views/opds/v2/links.py +27 -2
  452. codex/views/opds/v2/publications.py +5 -6
  453. codex/views/opds/v2/top_links.py +3 -6
  454. codex/views/public.py +2 -2
  455. codex/views/reader/arcs.py +0 -3
  456. codex/views/reader/books.py +57 -41
  457. codex/views/reader/page.py +13 -7
  458. codex/views/reader/{init.py → params.py} +37 -31
  459. codex/views/reader/reader.py +1 -2
  460. codex/views/session.py +43 -54
  461. codex/views/timezone.py +54 -0
  462. codex/views/version.py +1 -1
  463. {codex-1.6.19.dist-info → codex-1.7.0.dist-info}/METADATA +15 -10
  464. {codex-1.6.19.dist-info → codex-1.7.0.dist-info}/RECORD +467 -484
  465. codex/_vendor/__init__.py +0 -0
  466. codex/_vendor/django_haystack-3.2.1.dist-info/AUTHORS +0 -127
  467. codex/_vendor/django_haystack-3.2.1.dist-info/INSTALLER +0 -1
  468. codex/_vendor/django_haystack-3.2.1.dist-info/LICENSE +0 -31
  469. codex/_vendor/django_haystack-3.2.1.dist-info/METADATA +0 -98
  470. codex/_vendor/django_haystack-3.2.1.dist-info/RECORD +0 -97
  471. codex/_vendor/django_haystack-3.2.1.dist-info/REQUESTED +0 -0
  472. codex/_vendor/django_haystack-3.2.1.dist-info/WHEEL +0 -5
  473. codex/_vendor/django_haystack-3.2.1.dist-info/top_level.txt +0 -1
  474. codex/_vendor/haystack/__init__.py +0 -80
  475. codex/_vendor/haystack/admin.py +0 -163
  476. codex/_vendor/haystack/apps.py +0 -31
  477. codex/_vendor/haystack/backends/__init__.py +0 -1109
  478. codex/_vendor/haystack/backends/elasticsearch2_backend.py +0 -390
  479. codex/_vendor/haystack/backends/elasticsearch5_backend.py +0 -483
  480. codex/_vendor/haystack/backends/elasticsearch7_backend.py +0 -586
  481. codex/_vendor/haystack/backends/elasticsearch_backend.py +0 -1141
  482. codex/_vendor/haystack/backends/simple_backend.py +0 -132
  483. codex/_vendor/haystack/backends/solr_backend.py +0 -991
  484. codex/_vendor/haystack/backends/whoosh_backend.py +0 -1104
  485. codex/_vendor/haystack/constants.py +0 -57
  486. codex/_vendor/haystack/exceptions.py +0 -57
  487. codex/_vendor/haystack/fields.py +0 -562
  488. codex/_vendor/haystack/forms.py +0 -135
  489. codex/_vendor/haystack/generic_views.py +0 -141
  490. codex/_vendor/haystack/indexes.py +0 -548
  491. codex/_vendor/haystack/inputs.py +0 -169
  492. codex/_vendor/haystack/management/__init__.py +0 -0
  493. codex/_vendor/haystack/management/commands/__init__.py +0 -0
  494. codex/_vendor/haystack/management/commands/build_solr_schema.py +0 -187
  495. codex/_vendor/haystack/management/commands/clear_index.py +0 -67
  496. codex/_vendor/haystack/management/commands/haystack_info.py +0 -22
  497. codex/_vendor/haystack/management/commands/rebuild_index.py +0 -65
  498. codex/_vendor/haystack/management/commands/update_index.py +0 -438
  499. codex/_vendor/haystack/manager.py +0 -105
  500. codex/_vendor/haystack/models.py +0 -257
  501. codex/_vendor/haystack/panels.py +0 -89
  502. codex/_vendor/haystack/query.py +0 -771
  503. codex/_vendor/haystack/routers.py +0 -14
  504. codex/_vendor/haystack/signals.py +0 -88
  505. codex/_vendor/haystack/templates/panels/haystack.html +0 -33
  506. codex/_vendor/haystack/templates/search_configuration/schema.xml +0 -1056
  507. codex/_vendor/haystack/templates/search_configuration/solrconfig.xml +0 -1446
  508. codex/_vendor/haystack/templatetags/__init__.py +0 -0
  509. codex/_vendor/haystack/templatetags/highlight.py +0 -131
  510. codex/_vendor/haystack/templatetags/more_like_this.py +0 -119
  511. codex/_vendor/haystack/urls.py +0 -5
  512. codex/_vendor/haystack/utils/__init__.py +0 -84
  513. codex/_vendor/haystack/utils/app_loading.py +0 -34
  514. codex/_vendor/haystack/utils/geo.py +0 -71
  515. codex/_vendor/haystack/utils/highlighting.py +0 -165
  516. codex/_vendor/haystack/utils/loading.py +0 -374
  517. codex/_vendor/haystack/utils/log.py +0 -21
  518. codex/_vendor/haystack/version.py +0 -16
  519. codex/_vendor/haystack/views.py +0 -253
  520. codex/integrity.py +0 -492
  521. codex/librarian/search/merge.py +0 -86
  522. codex/librarian/search/version.py +0 -63
  523. codex/search/__init__.py +0 -1
  524. codex/search/backend.py +0 -524
  525. codex/search/backend_search.py +0 -229
  526. codex/search/engine.py +0 -33
  527. codex/search/indexes.py +0 -79
  528. codex/search/query.py +0 -67
  529. codex/search/writing.py +0 -180
  530. codex/serializers/choices.py +0 -196
  531. codex/static_root/assets/VCheckbox-Cko1sQK-.170726b3b8a1.js +0 -1
  532. codex/static_root/assets/VCheckbox-Cko1sQK-.170726b3b8a1.js.br +0 -0
  533. codex/static_root/assets/VCheckbox-Cko1sQK-.170726b3b8a1.js.gz +0 -0
  534. codex/static_root/assets/VCheckbox-Cko1sQK-.js +0 -1
  535. codex/static_root/assets/VCheckbox-Cko1sQK-.js.br +0 -0
  536. codex/static_root/assets/VCheckbox-Cko1sQK-.js.gz +0 -0
  537. codex/static_root/assets/VCheckboxBtn-CO3-aqQL.c9b8062fd66f.js +0 -1
  538. codex/static_root/assets/VCheckboxBtn-CO3-aqQL.c9b8062fd66f.js.br +0 -0
  539. codex/static_root/assets/VCheckboxBtn-CO3-aqQL.c9b8062fd66f.js.gz +0 -0
  540. codex/static_root/assets/VCheckboxBtn-CO3-aqQL.js +0 -1
  541. codex/static_root/assets/VCheckboxBtn-CO3-aqQL.js.br +0 -0
  542. codex/static_root/assets/VCheckboxBtn-CO3-aqQL.js.gz +0 -0
  543. codex/static_root/assets/VCombobox-Bjp6lffE.caf59fba486e.js +0 -1
  544. codex/static_root/assets/VCombobox-Bjp6lffE.caf59fba486e.js.br +0 -0
  545. codex/static_root/assets/VCombobox-Bjp6lffE.caf59fba486e.js.gz +0 -0
  546. codex/static_root/assets/VCombobox-Bjp6lffE.js +0 -1
  547. codex/static_root/assets/VCombobox-Bjp6lffE.js.br +0 -0
  548. codex/static_root/assets/VCombobox-Bjp6lffE.js.gz +0 -0
  549. codex/static_root/assets/VDialog-38np3TSA.5a0cb7a9e56d.css +0 -1
  550. codex/static_root/assets/VDialog-38np3TSA.5a0cb7a9e56d.css.br +0 -0
  551. codex/static_root/assets/VDialog-38np3TSA.5a0cb7a9e56d.css.gz +0 -0
  552. codex/static_root/assets/VDialog-38np3TSA.css +0 -1
  553. codex/static_root/assets/VDialog-38np3TSA.css.br +0 -0
  554. codex/static_root/assets/VDialog-38np3TSA.css.gz +0 -0
  555. codex/static_root/assets/VDialog-BkpVGB70.6eea3ca762a5.js +0 -1
  556. codex/static_root/assets/VDialog-BkpVGB70.6eea3ca762a5.js.br +0 -0
  557. codex/static_root/assets/VDialog-BkpVGB70.6eea3ca762a5.js.gz +0 -0
  558. codex/static_root/assets/VDialog-BkpVGB70.js +0 -1
  559. codex/static_root/assets/VDialog-BkpVGB70.js.br +0 -0
  560. codex/static_root/assets/VDialog-BkpVGB70.js.gz +0 -0
  561. codex/static_root/assets/VExpansionPanels-Ci2-j8XX.9c55db4ef49e.js +0 -1
  562. codex/static_root/assets/VExpansionPanels-Ci2-j8XX.9c55db4ef49e.js.br +0 -0
  563. codex/static_root/assets/VExpansionPanels-Ci2-j8XX.9c55db4ef49e.js.gz +0 -0
  564. codex/static_root/assets/VExpansionPanels-Ci2-j8XX.js +0 -1
  565. codex/static_root/assets/VExpansionPanels-Ci2-j8XX.js.br +0 -0
  566. codex/static_root/assets/VExpansionPanels-Ci2-j8XX.js.gz +0 -0
  567. codex/static_root/assets/VRadioGroup-D3Py5BfQ.a4f25edb86d3.js +0 -1
  568. codex/static_root/assets/VRadioGroup-D3Py5BfQ.a4f25edb86d3.js.br +0 -0
  569. codex/static_root/assets/VRadioGroup-D3Py5BfQ.a4f25edb86d3.js.gz +0 -0
  570. codex/static_root/assets/VRadioGroup-D3Py5BfQ.js +0 -1
  571. codex/static_root/assets/VRadioGroup-D3Py5BfQ.js.br +0 -0
  572. codex/static_root/assets/VRadioGroup-D3Py5BfQ.js.gz +0 -0
  573. codex/static_root/assets/VSelect-Ca2bIOso.6613989e4c45.css +0 -1
  574. codex/static_root/assets/VSelect-Ca2bIOso.6613989e4c45.css.br +0 -0
  575. codex/static_root/assets/VSelect-Ca2bIOso.6613989e4c45.css.gz +0 -0
  576. codex/static_root/assets/VSelect-Ca2bIOso.css +0 -1
  577. codex/static_root/assets/VSelect-Ca2bIOso.css.br +0 -0
  578. codex/static_root/assets/VSelect-Ca2bIOso.css.gz +0 -0
  579. codex/static_root/assets/VSelect-DtvZsYZz.e98745d858eb.js +0 -1
  580. codex/static_root/assets/VSelect-DtvZsYZz.e98745d858eb.js.br +0 -0
  581. codex/static_root/assets/VSelect-DtvZsYZz.e98745d858eb.js.gz +0 -0
  582. codex/static_root/assets/VSelect-DtvZsYZz.js +0 -1
  583. codex/static_root/assets/VSelect-DtvZsYZz.js.br +0 -0
  584. codex/static_root/assets/VSelect-DtvZsYZz.js.gz +0 -0
  585. codex/static_root/assets/VSelectionControl-D6kmykQW.1e1fda62ceba.js +0 -1
  586. codex/static_root/assets/VSelectionControl-D6kmykQW.1e1fda62ceba.js.br +0 -0
  587. codex/static_root/assets/VSelectionControl-D6kmykQW.1e1fda62ceba.js.gz +0 -0
  588. codex/static_root/assets/VSelectionControl-D6kmykQW.js +0 -1
  589. codex/static_root/assets/VSelectionControl-D6kmykQW.js.br +0 -0
  590. codex/static_root/assets/VSelectionControl-D6kmykQW.js.gz +0 -0
  591. codex/static_root/assets/VSlideGroup-Dk_1upHt.2c836070ec75.css +0 -1
  592. codex/static_root/assets/VSlideGroup-Dk_1upHt.2c836070ec75.css.br +0 -0
  593. codex/static_root/assets/VSlideGroup-Dk_1upHt.2c836070ec75.css.gz +0 -0
  594. codex/static_root/assets/VSlideGroup-Dk_1upHt.css +0 -1
  595. codex/static_root/assets/VSlideGroup-Dk_1upHt.css.br +0 -0
  596. codex/static_root/assets/VSlideGroup-Dk_1upHt.css.gz +0 -0
  597. codex/static_root/assets/VSlideGroup-UGZWxpF5.360bdefcd215.js +0 -1
  598. codex/static_root/assets/VSlideGroup-UGZWxpF5.360bdefcd215.js.br +0 -0
  599. codex/static_root/assets/VSlideGroup-UGZWxpF5.360bdefcd215.js.gz +0 -0
  600. codex/static_root/assets/VSlideGroup-UGZWxpF5.js +0 -1
  601. codex/static_root/assets/VSlideGroup-UGZWxpF5.js.br +0 -0
  602. codex/static_root/assets/VSlideGroup-UGZWxpF5.js.gz +0 -0
  603. codex/static_root/assets/VTable-DXH_yQ0o.1149f56ad566.js +0 -1
  604. codex/static_root/assets/VTable-DXH_yQ0o.1149f56ad566.js.br +0 -0
  605. codex/static_root/assets/VTable-DXH_yQ0o.1149f56ad566.js.gz +0 -0
  606. codex/static_root/assets/VTable-DXH_yQ0o.js +0 -1
  607. codex/static_root/assets/VTable-DXH_yQ0o.js.br +0 -0
  608. codex/static_root/assets/VTable-DXH_yQ0o.js.gz +0 -0
  609. codex/static_root/assets/VTextField-Blqy56_L.26d8761e0155.js +0 -1
  610. codex/static_root/assets/VTextField-Blqy56_L.26d8761e0155.js.br +0 -0
  611. codex/static_root/assets/VTextField-Blqy56_L.26d8761e0155.js.gz +0 -0
  612. codex/static_root/assets/VTextField-Blqy56_L.js +0 -1
  613. codex/static_root/assets/VTextField-Blqy56_L.js.br +0 -0
  614. codex/static_root/assets/VTextField-Blqy56_L.js.gz +0 -0
  615. codex/static_root/assets/VTextField-Crc3gdNh.39995ccf4d52.css +0 -1
  616. codex/static_root/assets/VTextField-Crc3gdNh.39995ccf4d52.css.br +0 -0
  617. codex/static_root/assets/VTextField-Crc3gdNh.39995ccf4d52.css.gz +0 -0
  618. codex/static_root/assets/VTextField-Crc3gdNh.css +0 -1
  619. codex/static_root/assets/VTextField-Crc3gdNh.css.br +0 -0
  620. codex/static_root/assets/VTextField-Crc3gdNh.css.gz +0 -0
  621. codex/static_root/assets/VWindowItem-C8_ovV7e.afbc08414765.js +0 -1
  622. codex/static_root/assets/VWindowItem-C8_ovV7e.afbc08414765.js.br +0 -0
  623. codex/static_root/assets/VWindowItem-C8_ovV7e.afbc08414765.js.gz +0 -0
  624. codex/static_root/assets/VWindowItem-C8_ovV7e.js +0 -1
  625. codex/static_root/assets/VWindowItem-C8_ovV7e.js.br +0 -0
  626. codex/static_root/assets/VWindowItem-C8_ovV7e.js.gz +0 -0
  627. codex/static_root/assets/admin-CWEjaFr5.7d4523387384.css.br +0 -0
  628. codex/static_root/assets/admin-CWEjaFr5.7d4523387384.css.gz +0 -0
  629. codex/static_root/assets/admin-CWEjaFr5.css.br +0 -0
  630. codex/static_root/assets/admin-CWEjaFr5.css.gz +0 -0
  631. codex/static_root/assets/admin-DTRn8bBs.d031ea42d8d0.js +0 -1
  632. codex/static_root/assets/admin-DTRn8bBs.d031ea42d8d0.js.br +0 -0
  633. codex/static_root/assets/admin-DTRn8bBs.d031ea42d8d0.js.gz +0 -0
  634. codex/static_root/assets/admin-DTRn8bBs.js +0 -1
  635. codex/static_root/assets/admin-DTRn8bBs.js.br +0 -0
  636. codex/static_root/assets/admin-DTRn8bBs.js.gz +0 -0
  637. codex/static_root/assets/admin-drawer-panel-BaXFOcru.b1a44b05f482.js +0 -30
  638. codex/static_root/assets/admin-drawer-panel-BaXFOcru.b1a44b05f482.js.br +0 -0
  639. codex/static_root/assets/admin-drawer-panel-BaXFOcru.b1a44b05f482.js.gz +0 -0
  640. codex/static_root/assets/admin-drawer-panel-BaXFOcru.js +0 -30
  641. codex/static_root/assets/admin-drawer-panel-BaXFOcru.js.br +0 -0
  642. codex/static_root/assets/admin-drawer-panel-BaXFOcru.js.gz +0 -0
  643. codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.3cb33056e994.css +0 -1
  644. codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.3cb33056e994.css.br +0 -0
  645. codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.3cb33056e994.css.gz +0 -0
  646. codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.css +0 -1
  647. codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.css.br +0 -0
  648. codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.css.gz +0 -0
  649. codex/static_root/assets/browser-BBpUyGmz.c1cb9e2d463b.js +0 -1
  650. codex/static_root/assets/browser-BBpUyGmz.c1cb9e2d463b.js.br +0 -0
  651. codex/static_root/assets/browser-BBpUyGmz.c1cb9e2d463b.js.gz +0 -0
  652. codex/static_root/assets/browser-BBpUyGmz.js +0 -1
  653. codex/static_root/assets/browser-BBpUyGmz.js.br +0 -0
  654. codex/static_root/assets/browser-BBpUyGmz.js.gz +0 -0
  655. codex/static_root/assets/browser-Binc3n9H.313722d27ca3.css +0 -1
  656. codex/static_root/assets/browser-Binc3n9H.313722d27ca3.css.br +0 -0
  657. codex/static_root/assets/browser-Binc3n9H.313722d27ca3.css.gz +0 -0
  658. codex/static_root/assets/browser-Binc3n9H.css +0 -1
  659. codex/static_root/assets/browser-Binc3n9H.css.br +0 -0
  660. codex/static_root/assets/browser-Binc3n9H.css.gz +0 -0
  661. codex/static_root/assets/change-password-dialog-Cebek1-c.aff2975e31f8.css +0 -1
  662. codex/static_root/assets/change-password-dialog-Cebek1-c.aff2975e31f8.css.br +0 -0
  663. codex/static_root/assets/change-password-dialog-Cebek1-c.aff2975e31f8.css.gz +0 -0
  664. codex/static_root/assets/change-password-dialog-Cebek1-c.css +0 -1
  665. codex/static_root/assets/change-password-dialog-Cebek1-c.css.br +0 -0
  666. codex/static_root/assets/change-password-dialog-Cebek1-c.css.gz +0 -0
  667. codex/static_root/assets/change-password-dialog-DlHoLhDF.76ab4a29bb9b.js +0 -1
  668. codex/static_root/assets/change-password-dialog-DlHoLhDF.76ab4a29bb9b.js.br +0 -0
  669. codex/static_root/assets/change-password-dialog-DlHoLhDF.76ab4a29bb9b.js.gz +0 -0
  670. codex/static_root/assets/change-password-dialog-DlHoLhDF.js +0 -1
  671. codex/static_root/assets/change-password-dialog-DlHoLhDF.js.br +0 -0
  672. codex/static_root/assets/change-password-dialog-DlHoLhDF.js.gz +0 -0
  673. codex/static_root/assets/confirm-dialog-BmhedLCx.7c2103d319d4.css +0 -1
  674. codex/static_root/assets/confirm-dialog-BmhedLCx.css +0 -1
  675. codex/static_root/assets/confirm-dialog-D3_s2DQy.9dde66036c72.js +0 -1
  676. codex/static_root/assets/confirm-dialog-D3_s2DQy.9dde66036c72.js.br +0 -0
  677. codex/static_root/assets/confirm-dialog-D3_s2DQy.9dde66036c72.js.gz +0 -0
  678. codex/static_root/assets/confirm-dialog-D3_s2DQy.js +0 -1
  679. codex/static_root/assets/confirm-dialog-D3_s2DQy.js.br +0 -0
  680. codex/static_root/assets/confirm-dialog-D3_s2DQy.js.gz +0 -0
  681. codex/static_root/assets/datetime-column-BxC1Li9e.3dc314b3295d.js +0 -1
  682. codex/static_root/assets/datetime-column-BxC1Li9e.3dc314b3295d.js.br +0 -0
  683. codex/static_root/assets/datetime-column-BxC1Li9e.3dc314b3295d.js.gz +0 -0
  684. codex/static_root/assets/datetime-column-BxC1Li9e.js +0 -1
  685. codex/static_root/assets/datetime-column-BxC1Li9e.js.br +0 -0
  686. codex/static_root/assets/datetime-column-BxC1Li9e.js.gz +0 -0
  687. codex/static_root/assets/filter-Bzk7x841.d0c3b602e62d.js +0 -1
  688. codex/static_root/assets/filter-Bzk7x841.d0c3b602e62d.js.br +0 -0
  689. codex/static_root/assets/filter-Bzk7x841.d0c3b602e62d.js.gz +0 -0
  690. codex/static_root/assets/filter-Bzk7x841.js +0 -1
  691. codex/static_root/assets/filter-Bzk7x841.js.br +0 -0
  692. codex/static_root/assets/filter-Bzk7x841.js.gz +0 -0
  693. codex/static_root/assets/flag-tab-C2bI5zq3.8f8c297600a6.js +0 -1
  694. codex/static_root/assets/flag-tab-C2bI5zq3.8f8c297600a6.js.br +0 -0
  695. codex/static_root/assets/flag-tab-C2bI5zq3.8f8c297600a6.js.gz +0 -0
  696. codex/static_root/assets/flag-tab-C2bI5zq3.js +0 -1
  697. codex/static_root/assets/flag-tab-C2bI5zq3.js.br +0 -0
  698. codex/static_root/assets/flag-tab-C2bI5zq3.js.gz +0 -0
  699. codex/static_root/assets/flag-tab-DBqpLKi7.css +0 -1
  700. codex/static_root/assets/flag-tab-DBqpLKi7.css.br +0 -0
  701. codex/static_root/assets/flag-tab-DBqpLKi7.css.gz +0 -0
  702. codex/static_root/assets/flag-tab-DBqpLKi7.dcfef39f541e.css +0 -1
  703. codex/static_root/assets/flag-tab-DBqpLKi7.dcfef39f541e.css.br +0 -0
  704. codex/static_root/assets/flag-tab-DBqpLKi7.dcfef39f541e.css.gz +0 -0
  705. codex/static_root/assets/group-tab-5esH4lwX.a81fdd258117.js +0 -1
  706. codex/static_root/assets/group-tab-5esH4lwX.a81fdd258117.js.br +0 -0
  707. codex/static_root/assets/group-tab-5esH4lwX.a81fdd258117.js.gz +0 -0
  708. codex/static_root/assets/group-tab-5esH4lwX.js +0 -1
  709. codex/static_root/assets/group-tab-5esH4lwX.js.br +0 -0
  710. codex/static_root/assets/group-tab-5esH4lwX.js.gz +0 -0
  711. codex/static_root/assets/group-tab-CBKuS3Iv.7e4746634782.css +0 -1
  712. codex/static_root/assets/group-tab-CBKuS3Iv.7e4746634782.css.br +0 -0
  713. codex/static_root/assets/group-tab-CBKuS3Iv.7e4746634782.css.gz +0 -0
  714. codex/static_root/assets/group-tab-CBKuS3Iv.css +0 -1
  715. codex/static_root/assets/group-tab-CBKuS3Iv.css.br +0 -0
  716. codex/static_root/assets/group-tab-CBKuS3Iv.css.gz +0 -0
  717. codex/static_root/assets/http-error-BTOBfcGY.52ced6f28420.js +0 -1
  718. codex/static_root/assets/http-error-BTOBfcGY.52ced6f28420.js.br +0 -0
  719. codex/static_root/assets/http-error-BTOBfcGY.52ced6f28420.js.gz +0 -0
  720. codex/static_root/assets/http-error-BTOBfcGY.js +0 -1
  721. codex/static_root/assets/http-error-BTOBfcGY.js.br +0 -0
  722. codex/static_root/assets/http-error-BTOBfcGY.js.gz +0 -0
  723. codex/static_root/assets/library-tab-Bh7ErAk7.7c44200ee727.css.br +0 -2
  724. codex/static_root/assets/library-tab-Bh7ErAk7.7c44200ee727.css.gz +0 -0
  725. codex/static_root/assets/library-tab-Bh7ErAk7.css.br +0 -2
  726. codex/static_root/assets/library-tab-Bh7ErAk7.css.gz +0 -0
  727. codex/static_root/assets/library-tab-DiPEdOF7.ece2d642a9dc.js +0 -1
  728. codex/static_root/assets/library-tab-DiPEdOF7.ece2d642a9dc.js.br +0 -0
  729. codex/static_root/assets/library-tab-DiPEdOF7.ece2d642a9dc.js.gz +0 -0
  730. codex/static_root/assets/library-tab-DiPEdOF7.js +0 -1
  731. codex/static_root/assets/library-tab-DiPEdOF7.js.br +0 -0
  732. codex/static_root/assets/library-tab-DiPEdOF7.js.gz +0 -0
  733. codex/static_root/assets/main-BPIPjzsc.66def8991e38.js +0 -6
  734. codex/static_root/assets/main-BPIPjzsc.66def8991e38.js.br +0 -0
  735. codex/static_root/assets/main-BPIPjzsc.66def8991e38.js.gz +0 -0
  736. codex/static_root/assets/main-BPIPjzsc.js +0 -6
  737. codex/static_root/assets/main-BPIPjzsc.js.br +0 -0
  738. codex/static_root/assets/main-BPIPjzsc.js.gz +0 -0
  739. codex/static_root/assets/pager-full-pdf-CiyC6Al9.278b9978f36f.js +0 -1
  740. codex/static_root/assets/pager-full-pdf-CiyC6Al9.278b9978f36f.js.br +0 -0
  741. codex/static_root/assets/pager-full-pdf-CiyC6Al9.278b9978f36f.js.gz +0 -0
  742. codex/static_root/assets/pager-full-pdf-CiyC6Al9.js +0 -1
  743. codex/static_root/assets/pager-full-pdf-CiyC6Al9.js.br +0 -0
  744. codex/static_root/assets/pager-full-pdf-CiyC6Al9.js.gz +0 -0
  745. codex/static_root/assets/pagination-toolbar-C45-onwe.4722195bb60b.css.br +0 -0
  746. codex/static_root/assets/pagination-toolbar-C45-onwe.4722195bb60b.css.gz +0 -0
  747. codex/static_root/assets/pagination-toolbar-C45-onwe.css.br +0 -0
  748. codex/static_root/assets/pagination-toolbar-C45-onwe.css.gz +0 -0
  749. codex/static_root/assets/pagination-toolbar-CkIzuyx1.00c354a82e6e.js +0 -1
  750. codex/static_root/assets/pagination-toolbar-CkIzuyx1.00c354a82e6e.js.br +0 -0
  751. codex/static_root/assets/pagination-toolbar-CkIzuyx1.00c354a82e6e.js.gz +0 -0
  752. codex/static_root/assets/pagination-toolbar-CkIzuyx1.js +0 -1
  753. codex/static_root/assets/pagination-toolbar-CkIzuyx1.js.br +0 -0
  754. codex/static_root/assets/pagination-toolbar-CkIzuyx1.js.gz +0 -0
  755. codex/static_root/assets/pdf-doc-BjlRPuf4.0f056fa321b6.js.br +0 -0
  756. codex/static_root/assets/pdf-doc-BjlRPuf4.0f056fa321b6.js.gz +0 -0
  757. codex/static_root/assets/pdf-doc-BjlRPuf4.js.br +0 -0
  758. codex/static_root/assets/pdf-doc-BjlRPuf4.js.gz +0 -0
  759. codex/static_root/assets/reader-_stAWL-4.5089e9144795.css +0 -1
  760. codex/static_root/assets/reader-_stAWL-4.5089e9144795.css.br +0 -0
  761. codex/static_root/assets/reader-_stAWL-4.5089e9144795.css.gz +0 -0
  762. codex/static_root/assets/reader-_stAWL-4.css +0 -1
  763. codex/static_root/assets/reader-_stAWL-4.css.br +0 -0
  764. codex/static_root/assets/reader-_stAWL-4.css.gz +0 -0
  765. codex/static_root/assets/reader-ucxnLi2K.d0fbce0f03c1.js +0 -2
  766. codex/static_root/assets/reader-ucxnLi2K.d0fbce0f03c1.js.br +0 -0
  767. codex/static_root/assets/reader-ucxnLi2K.d0fbce0f03c1.js.gz +0 -0
  768. codex/static_root/assets/reader-ucxnLi2K.js +0 -2
  769. codex/static_root/assets/reader-ucxnLi2K.js.br +0 -0
  770. codex/static_root/assets/reader-ucxnLi2K.js.gz +0 -0
  771. codex/static_root/assets/relation-chips-CUSatZET.a58031ff8141.js +0 -1
  772. codex/static_root/assets/relation-chips-CUSatZET.a58031ff8141.js.br +0 -0
  773. codex/static_root/assets/relation-chips-CUSatZET.a58031ff8141.js.gz +0 -0
  774. codex/static_root/assets/relation-chips-CUSatZET.js +0 -1
  775. codex/static_root/assets/relation-chips-CUSatZET.js.br +0 -0
  776. codex/static_root/assets/relation-chips-CUSatZET.js.gz +0 -0
  777. codex/static_root/assets/settings-drawer-BSHTAsJ9.1d07ce084fc9.js +0 -2
  778. codex/static_root/assets/settings-drawer-BSHTAsJ9.1d07ce084fc9.js.br +0 -0
  779. codex/static_root/assets/settings-drawer-BSHTAsJ9.1d07ce084fc9.js.gz +0 -0
  780. codex/static_root/assets/settings-drawer-BSHTAsJ9.js +0 -2
  781. codex/static_root/assets/settings-drawer-BSHTAsJ9.js.br +0 -0
  782. codex/static_root/assets/settings-drawer-BSHTAsJ9.js.gz +0 -0
  783. codex/static_root/assets/stats-tab-BXGisn5N.9b7a71e7fe28.css.br +0 -0
  784. codex/static_root/assets/stats-tab-BXGisn5N.9b7a71e7fe28.css.gz +0 -0
  785. codex/static_root/assets/stats-tab-BXGisn5N.css.br +0 -0
  786. codex/static_root/assets/stats-tab-BXGisn5N.css.gz +0 -0
  787. codex/static_root/assets/stats-tab-DKXVB2Cc.0a3de58bf5ee.js +0 -1
  788. codex/static_root/assets/stats-tab-DKXVB2Cc.0a3de58bf5ee.js.br +0 -0
  789. codex/static_root/assets/stats-tab-DKXVB2Cc.0a3de58bf5ee.js.gz +0 -0
  790. codex/static_root/assets/stats-tab-DKXVB2Cc.js +0 -1
  791. codex/static_root/assets/stats-tab-DKXVB2Cc.js.br +0 -0
  792. codex/static_root/assets/stats-tab-DKXVB2Cc.js.gz +0 -0
  793. codex/static_root/assets/task-tab-1XiWn9xP.06cb8e1b794d.css +0 -1
  794. codex/static_root/assets/task-tab-1XiWn9xP.06cb8e1b794d.css.gz +0 -0
  795. codex/static_root/assets/task-tab-1XiWn9xP.css +0 -1
  796. codex/static_root/assets/task-tab-1XiWn9xP.css.gz +0 -0
  797. codex/static_root/assets/task-tab-NORFAa9p.97e07e366ddd.js +0 -1
  798. codex/static_root/assets/task-tab-NORFAa9p.97e07e366ddd.js.br +0 -0
  799. codex/static_root/assets/task-tab-NORFAa9p.97e07e366ddd.js.gz +0 -0
  800. codex/static_root/assets/task-tab-NORFAa9p.js +0 -1
  801. codex/static_root/assets/task-tab-NORFAa9p.js.br +0 -0
  802. codex/static_root/assets/task-tab-NORFAa9p.js.gz +0 -0
  803. codex/static_root/assets/unauthorized-RHaQZRfr.a234e9403f60.js +0 -1
  804. codex/static_root/assets/unauthorized-RHaQZRfr.a234e9403f60.js.br +0 -0
  805. codex/static_root/assets/unauthorized-RHaQZRfr.a234e9403f60.js.gz +0 -0
  806. codex/static_root/assets/unauthorized-RHaQZRfr.js +0 -1
  807. codex/static_root/assets/unauthorized-RHaQZRfr.js.br +0 -0
  808. codex/static_root/assets/unauthorized-RHaQZRfr.js.gz +0 -0
  809. codex/static_root/assets/unauthorized-muDsv-rC.2166ec8b3a32.css.br +0 -0
  810. codex/static_root/assets/unauthorized-muDsv-rC.2166ec8b3a32.css.gz +0 -0
  811. codex/static_root/assets/unauthorized-muDsv-rC.css.br +0 -0
  812. codex/static_root/assets/unauthorized-muDsv-rC.css.gz +0 -0
  813. codex/static_root/assets/user-tab-CHbyN1EW.e7206db08680.js +0 -1
  814. codex/static_root/assets/user-tab-CHbyN1EW.e7206db08680.js.br +0 -0
  815. codex/static_root/assets/user-tab-CHbyN1EW.e7206db08680.js.gz +0 -0
  816. codex/static_root/assets/user-tab-CHbyN1EW.js +0 -1
  817. codex/static_root/assets/user-tab-CHbyN1EW.js.br +0 -0
  818. codex/static_root/assets/user-tab-CHbyN1EW.js.gz +0 -0
  819. codex/static_root/js/choices-admin.1a20a5648f20.json +0 -1
  820. codex/static_root/js/choices-admin.1a20a5648f20.json.br +0 -0
  821. codex/static_root/js/choices-admin.1a20a5648f20.json.gz +0 -0
  822. codex/static_root/js/choices-admin.json +0 -1
  823. codex/static_root/js/choices-admin.json.br +0 -0
  824. codex/static_root/js/choices-admin.json.gz +0 -0
  825. codex/static_root/js/choices.2f6b0359e1ef.json +0 -1
  826. codex/static_root/js/choices.2f6b0359e1ef.json.br +0 -0
  827. codex/static_root/js/choices.2f6b0359e1ef.json.gz +0 -0
  828. codex/static_root/js/choices.json +0 -1
  829. codex/static_root/js/choices.json.br +0 -0
  830. codex/static_root/js/choices.json.gz +0 -0
  831. codex/static_root/manifest.0fe31a6cb99f.json +0 -635
  832. codex/static_root/manifest.0fe31a6cb99f.json.br +0 -0
  833. codex/static_root/manifest.0fe31a6cb99f.json.gz +0 -0
  834. codex/templates/search/indexes/codex/comic_text.txt +0 -47
  835. codex/views/browser/annotations.py +0 -296
  836. codex/views/browser/base.py +0 -140
  837. codex/views/browser/filters/annotations.py +0 -103
  838. codex/views/browser/filters/search.py +0 -196
  839. codex/views/browser/metadata.py +0 -332
  840. {codex-1.6.19.dist-info → codex-1.7.0.dist-info}/LICENSE +0 -0
  841. {codex-1.6.19.dist-info → codex-1.7.0.dist-info}/WHEEL +0 -0
  842. {codex-1.6.19.dist-info → codex-1.7.0.dist-info}/entry_points.txt +0 -0
@@ -1,1109 +0,0 @@
1
- import copy
2
- from copy import deepcopy
3
- from time import time
4
-
5
- from django.conf import settings
6
- from django.db.models import Q
7
- from django.db.models.base import ModelBase
8
- from django.utils import tree
9
- from django.utils.encoding import force_str
10
-
11
- from ...haystack.constants import DEFAULT_ALIAS, FILTER_SEPARATOR, VALID_FILTERS
12
- from ...haystack.exceptions import FacetingError, MoreLikeThisError
13
- from ...haystack.models import SearchResult
14
- from ...haystack.utils import get_model_ct
15
- from ...haystack.utils.loading import UnifiedIndex
16
-
17
- VALID_GAPS = ["year", "month", "day", "hour", "minute", "second"]
18
-
19
- SPELLING_SUGGESTION_HAS_NOT_RUN = object()
20
-
21
-
22
- def log_query(func):
23
- """
24
- A decorator for pseudo-logging search queries. Used in the ``SearchBackend``
25
- to wrap the ``search`` method.
26
- """
27
-
28
- def wrapper(obj, query_string, *args, **kwargs):
29
- start = time()
30
-
31
- try:
32
- return func(obj, query_string, *args, **kwargs)
33
- finally:
34
- stop = time()
35
-
36
- if settings.DEBUG:
37
- from ...haystack import connections
38
-
39
- connections[obj.connection_alias].queries.append(
40
- {
41
- "query_string": query_string,
42
- "additional_args": args,
43
- "additional_kwargs": kwargs,
44
- "time": "%.3f" % (stop - start),
45
- "start": start,
46
- "stop": stop,
47
- }
48
- )
49
-
50
- return wrapper
51
-
52
-
53
- class EmptyResults:
54
- hits = 0
55
- docs = []
56
-
57
- def __len__(self):
58
- return 0
59
-
60
- def __getitem__(self, k):
61
- if isinstance(k, slice):
62
- return []
63
- else:
64
- raise IndexError("It's not here.")
65
-
66
-
67
- class BaseSearchBackend:
68
- """
69
- Abstract search engine base class.
70
- """
71
-
72
- # Backends should include their own reserved words/characters.
73
- RESERVED_WORDS = []
74
- RESERVED_CHARACTERS = []
75
-
76
- def __init__(self, connection_alias, **connection_options):
77
- self.connection_alias = connection_alias
78
- self.timeout = connection_options.get("TIMEOUT", 10)
79
- self.include_spelling = connection_options.get("INCLUDE_SPELLING", False)
80
- self.batch_size = connection_options.get("BATCH_SIZE", 1000)
81
- self.silently_fail = connection_options.get("SILENTLY_FAIL", True)
82
- self.distance_available = connection_options.get("DISTANCE_AVAILABLE", False)
83
-
84
- def update(self, index, iterable, commit=True):
85
- """
86
- Updates the backend when given a SearchIndex and a collection of
87
- documents.
88
-
89
- This method MUST be implemented by each backend, as it will be highly
90
- specific to each one.
91
- """
92
- raise NotImplementedError
93
-
94
- def remove(self, obj_or_string):
95
- """
96
- Removes a document/object from the backend. Can be either a model
97
- instance or the identifier (i.e. ``app_name.model_name.id``) in the
98
- event the object no longer exists.
99
-
100
- This method MUST be implemented by each backend, as it will be highly
101
- specific to each one.
102
- """
103
- raise NotImplementedError
104
-
105
- def clear(self, models=None, commit=True):
106
- """
107
- Clears the backend of all documents/objects for a collection of models.
108
-
109
- This method MUST be implemented by each backend, as it will be highly
110
- specific to each one.
111
- """
112
- raise NotImplementedError
113
-
114
- @log_query
115
- def search(self, query_string, **kwargs):
116
- """
117
- Takes a query to search on and returns dictionary.
118
-
119
- The query should be a string that is appropriate syntax for the backend.
120
-
121
- The returned dictionary should contain the keys 'results' and 'hits'.
122
- The 'results' value should be an iterable of populated SearchResult
123
- objects. The 'hits' should be an integer count of the number of matched
124
- results the search backend found.
125
-
126
- This method MUST be implemented by each backend, as it will be highly
127
- specific to each one.
128
- """
129
- raise NotImplementedError
130
-
131
- def build_search_kwargs(
132
- self,
133
- query_string,
134
- sort_by=None,
135
- start_offset=0,
136
- end_offset=None,
137
- fields="",
138
- highlight=False,
139
- facets=None,
140
- date_facets=None,
141
- query_facets=None,
142
- narrow_queries=None,
143
- spelling_query=None,
144
- within=None,
145
- dwithin=None,
146
- distance_point=None,
147
- models=None,
148
- limit_to_registered_models=None,
149
- result_class=None,
150
- **extra_kwargs
151
- ):
152
- # A convenience method most backends should include in order to make
153
- # extension easier.
154
- raise NotImplementedError
155
-
156
- def prep_value(self, value):
157
- """
158
- Hook to give the backend a chance to prep an attribute value before
159
- sending it to the search engine. By default, just force it to unicode.
160
- """
161
- return force_str(value)
162
-
163
- def more_like_this(
164
- self, model_instance, additional_query_string=None, result_class=None
165
- ):
166
- """
167
- Takes a model object and returns results the backend thinks are similar.
168
-
169
- This method MUST be implemented by each backend, as it will be highly
170
- specific to each one.
171
- """
172
- raise NotImplementedError(
173
- "Subclasses must provide a way to fetch similar record via the 'more_like_this' method if supported by the backend."
174
- )
175
-
176
- def extract_file_contents(self, file_obj):
177
- """
178
- Hook to allow backends which support rich-content types such as PDF,
179
- Word, etc. extraction to process the provided file object and return
180
- the contents for indexing
181
-
182
- Returns None if metadata cannot be extracted; otherwise returns a
183
- dictionary containing at least two keys:
184
-
185
- :contents:
186
- Extracted full-text content, if applicable
187
- :metadata:
188
- key:value pairs of text strings
189
- """
190
-
191
- raise NotImplementedError(
192
- "Subclasses must provide a way to extract metadata via the 'extract' method if supported by the backend."
193
- )
194
-
195
- def build_schema(self, fields):
196
- """
197
- Takes a dictionary of fields and returns schema information.
198
-
199
- This method MUST be implemented by each backend, as it will be highly
200
- specific to each one.
201
- """
202
- raise NotImplementedError(
203
- "Subclasses must provide a way to build their schema."
204
- )
205
-
206
- def build_models_list(self):
207
- """
208
- Builds a list of models for searching.
209
-
210
- The ``search`` method should use this and the ``django_ct`` field to
211
- narrow the results (unless the user indicates not to). This helps ignore
212
- any results that are not currently handled models and ensures
213
- consistent caching.
214
- """
215
- from ...haystack import connections
216
-
217
- models = []
218
-
219
- for model in (
220
- connections[self.connection_alias].get_unified_index().get_indexed_models()
221
- ):
222
- models.append(get_model_ct(model))
223
-
224
- return models
225
-
226
-
227
- # Alias for easy loading within SearchQuery objects.
228
- SearchBackend = BaseSearchBackend
229
-
230
-
231
- class SearchNode(tree.Node):
232
- """
233
- Manages an individual condition within a query.
234
-
235
- Most often, this will be a lookup to ensure that a certain word or phrase
236
- appears in the documents being indexed. However, it also supports filtering
237
- types (such as 'lt', 'gt', 'in' and others) for more complex lookups.
238
-
239
- This object creates a tree, with children being a list of either more
240
- ``SQ`` objects or the expressions/values themselves.
241
- """
242
-
243
- AND = "AND"
244
- OR = "OR"
245
- default = AND
246
-
247
- # Start compat. Django 1.6 changed how ``tree.Node`` works, so we're going
248
- # to patch back in the original implementation until time to rewrite this
249
- # presents itself.
250
- # See https://github.com/django/django/commit/d3f00bd.
251
-
252
- def __init__(self, children=None, connector=None, negated=False):
253
- """
254
- Constructs a new Node. If no connector is given, the default will be
255
- used.
256
-
257
- Warning: You probably don't want to pass in the 'negated' parameter. It
258
- is NOT the same as constructing a node and calling negate() on the
259
- result.
260
- """
261
- self.children = children and children[:] or []
262
- self.connector = connector or self.default
263
- self.subtree_parents = []
264
- self.negated = negated
265
-
266
- # We need this because of django.db.models.query_utils.Q. Q. __init__() is
267
- # problematic, but it is a natural Node subclass in all other respects.
268
- def _new_instance(cls, children=None, connector=None, negated=False):
269
- """
270
- This is called to create a new instance of this class when we need new
271
- Nodes (or subclasses) in the internal code in this class. Normally, it
272
- just shadows __init__(). However, subclasses with an __init__ signature
273
- that is not an extension of Node.__init__ might need to implement this
274
- method to allow a Node to create a new instance of them (if they have
275
- any extra setting up to do).
276
- """
277
- obj = SearchNode(children, connector, negated)
278
- obj.__class__ = cls
279
- return obj
280
-
281
- _new_instance = classmethod(_new_instance)
282
-
283
- def __str__(self):
284
- if self.negated:
285
- return "(NOT (%s: %s))" % (
286
- self.connector,
287
- ", ".join([str(c) for c in self.children]),
288
- )
289
- return "(%s: %s)" % (self.connector, ", ".join([str(c) for c in self.children]))
290
-
291
- def __deepcopy__(self, memodict):
292
- """
293
- Utility method used by copy.deepcopy().
294
- """
295
- obj = SearchNode(connector=self.connector, negated=self.negated)
296
- obj.__class__ = self.__class__
297
- obj.children = copy.deepcopy(self.children, memodict)
298
- obj.subtree_parents = copy.deepcopy(self.subtree_parents, memodict)
299
- return obj
300
-
301
- def __len__(self):
302
- """
303
- The size of a node if the number of children it has.
304
- """
305
- return len(self.children)
306
-
307
- def __bool__(self):
308
- """
309
- For truth value testing.
310
- """
311
- return bool(self.children)
312
-
313
- def __contains__(self, other):
314
- """
315
- Returns True is 'other' is a direct child of this instance.
316
- """
317
- return other in self.children
318
-
319
- def add(self, node, conn_type):
320
- """
321
- Adds a new node to the tree. If the conn_type is the same as the root's
322
- current connector type, the node is added to the first level.
323
- Otherwise, the whole tree is pushed down one level and a new root
324
- connector is created, connecting the existing tree and the new node.
325
- """
326
- if node in self.children and conn_type == self.connector:
327
- return
328
- if len(self.children) < 2:
329
- self.connector = conn_type
330
- if self.connector == conn_type:
331
- if isinstance(node, SearchNode) and (
332
- node.connector == conn_type or len(node) == 1
333
- ):
334
- self.children.extend(node.children)
335
- else:
336
- self.children.append(node)
337
- else:
338
- obj = self._new_instance(self.children, self.connector, self.negated)
339
- self.connector = conn_type
340
- self.children = [obj, node]
341
-
342
- def negate(self):
343
- """
344
- Negate the sense of the root connector. This reorganises the children
345
- so that the current node has a single child: a negated node containing
346
- all the previous children. This slightly odd construction makes adding
347
- new children behave more intuitively.
348
-
349
- Interpreting the meaning of this negate is up to client code. This
350
- method is useful for implementing "not" arrangements.
351
- """
352
- self.children = [
353
- self._new_instance(self.children, self.connector, not self.negated)
354
- ]
355
- self.connector = self.default
356
-
357
- def start_subtree(self, conn_type):
358
- """
359
- Sets up internal state so that new nodes are added to a subtree of the
360
- current node. The conn_type specifies how the sub-tree is joined to the
361
- existing children.
362
- """
363
- if len(self.children) == 1:
364
- self.connector = conn_type
365
- elif self.connector != conn_type:
366
- self.children = [
367
- self._new_instance(self.children, self.connector, self.negated)
368
- ]
369
- self.connector = conn_type
370
- self.negated = False
371
-
372
- self.subtree_parents.append(
373
- self.__class__(self.children, self.connector, self.negated)
374
- )
375
- self.connector = self.default
376
- self.negated = False
377
- self.children = []
378
-
379
- def end_subtree(self):
380
- """
381
- Closes off the most recently unmatched start_subtree() call.
382
-
383
- This puts the current state into a node of the parent tree and returns
384
- the current instances state to be the parent.
385
- """
386
- obj = self.subtree_parents.pop()
387
- node = self.__class__(self.children, self.connector)
388
- self.connector = obj.connector
389
- self.negated = obj.negated
390
- self.children = obj.children
391
- self.children.append(node)
392
-
393
- # End compat.
394
-
395
- def __repr__(self):
396
- return "<SQ: %s %s>" % (
397
- self.connector,
398
- self.as_query_string(self._repr_query_fragment_callback),
399
- )
400
-
401
- def _repr_query_fragment_callback(self, field, filter_type, value):
402
- return "%s%s%s=%s" % (field, FILTER_SEPARATOR, filter_type, force_str(value))
403
-
404
- def as_query_string(self, query_fragment_callback):
405
- """
406
- Produces a portion of the search query from the current SQ and its
407
- children.
408
- """
409
- result = []
410
-
411
- for child in self.children:
412
- if hasattr(child, "as_query_string"):
413
- result.append(child.as_query_string(query_fragment_callback))
414
- else:
415
- expression, value = child
416
- field, filter_type = self.split_expression(expression)
417
- result.append(query_fragment_callback(field, filter_type, value))
418
-
419
- conn = " %s " % self.connector
420
- query_string = conn.join(result)
421
-
422
- if query_string:
423
- if self.negated:
424
- query_string = "NOT (%s)" % query_string
425
- elif len(self.children) != 1:
426
- query_string = "(%s)" % query_string
427
-
428
- return query_string
429
-
430
- def split_expression(self, expression):
431
- """Parses an expression and determines the field and filter type."""
432
- parts = expression.split(FILTER_SEPARATOR)
433
- field = parts[0]
434
- if len(parts) == 1 or parts[-1] not in VALID_FILTERS:
435
- filter_type = "content"
436
- else:
437
- filter_type = parts.pop()
438
-
439
- return (field, filter_type)
440
-
441
-
442
- class SQ(Q, SearchNode):
443
- """
444
- Manages an individual condition within a query.
445
-
446
- Most often, this will be a lookup to ensure that a certain word or phrase
447
- appears in the documents being indexed. However, it also supports filtering
448
- types (such as 'lt', 'gt', 'in' and others) for more complex lookups.
449
- """
450
-
451
- pass
452
-
453
-
454
- class BaseSearchQuery:
455
- """
456
- A base class for handling the query itself.
457
-
458
- This class acts as an intermediary between the ``SearchQuerySet`` and the
459
- ``SearchBackend`` itself.
460
-
461
- The ``SearchQuery`` object maintains a tree of ``SQ`` objects. Each ``SQ``
462
- object supports what field it looks up against, what kind of lookup (i.e.
463
- the __'s), what value it's looking for, if it's a AND/OR/NOT and tracks
464
- any children it may have. The ``SearchQuery.build_query`` method starts with
465
- the root of the tree, building part of the final query at each node until
466
- the full final query is ready for the ``SearchBackend``.
467
-
468
- Backends should extend this class and provide implementations for
469
- ``build_query_fragment``, ``clean`` and ``run``. See the ``solr`` backend for an example
470
- implementation.
471
- """
472
-
473
- def __init__(self, using=DEFAULT_ALIAS):
474
- self.query_filter = SearchNode()
475
- self.order_by = []
476
- self.models = set()
477
- self.boost = {}
478
- self.start_offset = 0
479
- self.end_offset = None
480
- self.highlight = False
481
- self.facets = {}
482
- self.date_facets = {}
483
- self.query_facets = []
484
- self.narrow_queries = set()
485
- #: If defined, fields should be a list of field names - no other values
486
- #: will be retrieved so the caller must be careful to include django_ct
487
- #: and django_id when using code which expects those to be included in
488
- #: the results
489
- self.fields = []
490
- # Geospatial-related information
491
- self.within = {}
492
- self.dwithin = {}
493
- self.distance_point = {}
494
- # Internal.
495
- self._raw_query = None
496
- self._raw_query_params = {}
497
- self._more_like_this = False
498
- self._mlt_instance = None
499
- self._results = None
500
- self._hit_count = None
501
- self._facet_counts = None
502
- self._stats = None
503
- self._spelling_suggestion = SPELLING_SUGGESTION_HAS_NOT_RUN
504
- self.spelling_query = None
505
- self.result_class = SearchResult
506
- self.stats = {}
507
- from ...haystack import connections
508
-
509
- self._using = using
510
- self.backend = connections[self._using].get_backend()
511
-
512
- def __str__(self):
513
- return self.build_query()
514
-
515
- def __getstate__(self):
516
- """For pickling."""
517
- obj_dict = self.__dict__.copy()
518
- del obj_dict["backend"]
519
- return obj_dict
520
-
521
- def __setstate__(self, obj_dict):
522
- """For unpickling."""
523
- from ...haystack import connections
524
-
525
- self.__dict__.update(obj_dict)
526
- self.backend = connections[self._using].get_backend()
527
-
528
- def has_run(self):
529
- """Indicates if any query has been been run."""
530
- return None not in (self._results, self._hit_count)
531
-
532
- def build_params(self, spelling_query=None):
533
- """Generates a list of params to use when searching."""
534
- kwargs = {"start_offset": self.start_offset}
535
-
536
- if self.order_by:
537
- kwargs["sort_by"] = self.order_by
538
-
539
- if self.end_offset is not None:
540
- kwargs["end_offset"] = self.end_offset
541
-
542
- if self.highlight:
543
- kwargs["highlight"] = self.highlight
544
-
545
- if self.facets:
546
- kwargs["facets"] = self.facets
547
-
548
- if self.date_facets:
549
- kwargs["date_facets"] = self.date_facets
550
-
551
- if self.query_facets:
552
- kwargs["query_facets"] = self.query_facets
553
-
554
- if self.narrow_queries:
555
- kwargs["narrow_queries"] = self.narrow_queries
556
-
557
- if spelling_query:
558
- kwargs["spelling_query"] = spelling_query
559
- elif self.spelling_query:
560
- kwargs["spelling_query"] = self.spelling_query
561
-
562
- if self.boost:
563
- kwargs["boost"] = self.boost
564
-
565
- if self.within:
566
- kwargs["within"] = self.within
567
-
568
- if self.dwithin:
569
- kwargs["dwithin"] = self.dwithin
570
-
571
- if self.distance_point:
572
- kwargs["distance_point"] = self.distance_point
573
-
574
- if self.result_class:
575
- kwargs["result_class"] = self.result_class
576
-
577
- if self.fields:
578
- kwargs["fields"] = self.fields
579
-
580
- if self.models:
581
- kwargs["models"] = self.models
582
-
583
- return kwargs
584
-
585
- def run(self, spelling_query=None, **kwargs):
586
- """Builds and executes the query. Returns a list of search results."""
587
- final_query = self.build_query()
588
- search_kwargs = self.build_params(spelling_query=spelling_query)
589
-
590
- if kwargs:
591
- search_kwargs.update(kwargs)
592
-
593
- results = self.backend.search(final_query, **search_kwargs)
594
- self._results = results.get("results", [])
595
- self._hit_count = results.get("hits", 0)
596
- self._facet_counts = self.post_process_facets(results)
597
- self._spelling_suggestion = results.get("spelling_suggestion", None)
598
-
599
- def run_mlt(self, **kwargs):
600
- """
601
- Executes the More Like This. Returns a list of search results similar
602
- to the provided document (and optionally query).
603
- """
604
- if self._more_like_this is False or self._mlt_instance is None:
605
- raise MoreLikeThisError(
606
- "No instance was provided to determine 'More Like This' results."
607
- )
608
-
609
- search_kwargs = {"result_class": self.result_class}
610
-
611
- if self.models:
612
- search_kwargs["models"] = self.models
613
-
614
- if kwargs:
615
- search_kwargs.update(kwargs)
616
-
617
- additional_query_string = self.build_query()
618
- results = self.backend.more_like_this(
619
- self._mlt_instance, additional_query_string, **search_kwargs
620
- )
621
- self._results = results.get("results", [])
622
- self._hit_count = results.get("hits", 0)
623
-
624
- def run_raw(self, **kwargs):
625
- """Executes a raw query. Returns a list of search results."""
626
- search_kwargs = self.build_params()
627
- search_kwargs.update(self._raw_query_params)
628
-
629
- if kwargs:
630
- search_kwargs.update(kwargs)
631
-
632
- results = self.backend.search(self._raw_query, **search_kwargs)
633
- self._results = results.get("results", [])
634
- self._hit_count = results.get("hits", 0)
635
- self._facet_counts = results.get("facets", {})
636
- self._spelling_suggestion = results.get("spelling_suggestion", None)
637
-
638
- def get_count(self):
639
- """
640
- Returns the number of results the backend found for the query.
641
-
642
- If the query has not been run, this will execute the query and store
643
- the results.
644
- """
645
- if self._hit_count is None:
646
- # Limit the slice to 1 so we get a count without consuming
647
- # everything.
648
- if not self.end_offset:
649
- self.end_offset = 1
650
-
651
- if self._more_like_this:
652
- # Special case for MLT.
653
- self.run_mlt()
654
- elif self._raw_query:
655
- # Special case for raw queries.
656
- self.run_raw()
657
- else:
658
- self.run()
659
-
660
- return self._hit_count
661
-
662
- def get_results(self, **kwargs):
663
- """
664
- Returns the results received from the backend.
665
-
666
- If the query has not been run, this will execute the query and store
667
- the results.
668
- """
669
- if self._results is None:
670
- if self._more_like_this:
671
- # Special case for MLT.
672
- self.run_mlt(**kwargs)
673
- elif self._raw_query:
674
- # Special case for raw queries.
675
- self.run_raw(**kwargs)
676
- else:
677
- self.run(**kwargs)
678
-
679
- return self._results
680
-
681
- def get_facet_counts(self):
682
- """
683
- Returns the facet counts received from the backend.
684
-
685
- If the query has not been run, this will execute the query and store
686
- the results.
687
- """
688
- if self._facet_counts is None:
689
- self.run()
690
-
691
- return self._facet_counts
692
-
693
- def get_stats(self):
694
- """
695
- Returns the stats received from the backend.
696
-
697
- If the query has not been run, this will execute the query and store
698
- the results
699
- """
700
- if self._stats is None:
701
- self.run()
702
- return self._stats
703
-
704
- def set_spelling_query(self, spelling_query):
705
- self.spelling_query = spelling_query
706
-
707
- def get_spelling_suggestion(self, preferred_query=None):
708
- """
709
- Returns the spelling suggestion received from the backend.
710
-
711
- If the query has not been run, this will execute the query and store
712
- the results.
713
- """
714
- if self._spelling_suggestion is SPELLING_SUGGESTION_HAS_NOT_RUN:
715
- self.run(spelling_query=preferred_query)
716
-
717
- return self._spelling_suggestion
718
-
719
- def boost_fragment(self, boost_word, boost_value):
720
- """Generates query fragment for boosting a single word/value pair."""
721
- return "%s^%s" % (boost_word, boost_value)
722
-
723
- def matching_all_fragment(self):
724
- """Generates the query that matches all documents."""
725
- return "*"
726
-
727
- def build_query(self):
728
- """
729
- Interprets the collected query metadata and builds the final query to
730
- be sent to the backend.
731
- """
732
- final_query = self.query_filter.as_query_string(self.build_query_fragment)
733
-
734
- if not final_query:
735
- # Match all.
736
- final_query = self.matching_all_fragment()
737
-
738
- if self.boost:
739
- boost_list = []
740
-
741
- for boost_word, boost_value in self.boost.items():
742
- boost_list.append(self.boost_fragment(boost_word, boost_value))
743
-
744
- final_query = "%s %s" % (final_query, " ".join(boost_list))
745
-
746
- return final_query
747
-
748
- def combine(self, rhs, connector=SQ.AND):
749
- if connector == SQ.AND:
750
- self.add_filter(rhs.query_filter)
751
- elif connector == SQ.OR:
752
- self.add_filter(rhs.query_filter, use_or=True)
753
-
754
- # Methods for backends to implement.
755
-
756
- def build_query_fragment(self, field, filter_type, value):
757
- """
758
- Generates a query fragment from a field, filter type and a value.
759
-
760
- Must be implemented in backends as this will be highly backend specific.
761
- """
762
- raise NotImplementedError(
763
- "Subclasses must provide a way to generate query fragments via the 'build_query_fragment' method."
764
- )
765
-
766
- # Standard methods to alter the query.
767
-
768
- def clean(self, query_fragment):
769
- """
770
- Provides a mechanism for sanitizing user input before presenting the
771
- value to the backend.
772
-
773
- A basic (override-able) implementation is provided.
774
- """
775
- if not isinstance(query_fragment, str):
776
- return query_fragment
777
-
778
- words = query_fragment.split()
779
- cleaned_words = []
780
-
781
- for word in words:
782
- if word in self.backend.RESERVED_WORDS:
783
- word = word.replace(word, word.lower())
784
-
785
- for char in self.backend.RESERVED_CHARACTERS:
786
- word = word.replace(char, "\\%s" % char)
787
-
788
- cleaned_words.append(word)
789
-
790
- return " ".join(cleaned_words)
791
-
792
- def build_not_query(self, query_string):
793
- if " " in query_string:
794
- query_string = "(%s)" % query_string
795
-
796
- return "NOT %s" % query_string
797
-
798
- def build_exact_query(self, query_string):
799
- return '"%s"' % query_string
800
-
801
- def add_filter(self, query_filter, use_or=False):
802
- """
803
- Adds a SQ to the current query.
804
- """
805
- if use_or:
806
- connector = SQ.OR
807
- else:
808
- connector = SQ.AND
809
-
810
- if (
811
- self.query_filter
812
- and query_filter.connector != connector
813
- and len(query_filter) > 1
814
- ):
815
- self.query_filter.start_subtree(connector)
816
- subtree = True
817
- else:
818
- subtree = False
819
-
820
- for child in query_filter.children:
821
- if isinstance(child, tree.Node):
822
- self.query_filter.start_subtree(connector)
823
- self.add_filter(child)
824
- self.query_filter.end_subtree()
825
- else:
826
- expression, value = child
827
- self.query_filter.add((expression, value), connector)
828
-
829
- connector = query_filter.connector
830
-
831
- if query_filter.negated:
832
- self.query_filter.negate()
833
-
834
- if subtree:
835
- self.query_filter.end_subtree()
836
-
837
- def add_order_by(self, field):
838
- """Orders the search result by a field."""
839
- self.order_by.append(field)
840
-
841
- def clear_order_by(self):
842
- """
843
- Clears out all ordering that has been already added, reverting the
844
- query to relevancy.
845
- """
846
- self.order_by = []
847
-
848
- def add_model(self, model):
849
- """
850
- Restricts the query requiring matches in the given model.
851
-
852
- This builds upon previous additions, so you can limit to multiple models
853
- by chaining this method several times.
854
- """
855
- if not isinstance(model, ModelBase):
856
- raise AttributeError(
857
- "The model being added to the query must derive from Model."
858
- )
859
-
860
- self.models.add(model)
861
-
862
- def set_limits(self, low=None, high=None):
863
- """Restricts the query by altering either the start, end or both offsets."""
864
- if low is not None:
865
- self.start_offset = int(low)
866
-
867
- if high is not None:
868
- self.end_offset = int(high)
869
-
870
- def clear_limits(self):
871
- """Clears any existing limits."""
872
- self.start_offset, self.end_offset = 0, None
873
-
874
- def add_boost(self, term, boost_value):
875
- """Adds a boosted term and the amount to boost it to the query."""
876
- self.boost[term] = boost_value
877
-
878
- def raw_search(self, query_string, **kwargs):
879
- """
880
- Runs a raw query (no parsing) against the backend.
881
-
882
- This method causes the SearchQuery to ignore the standard query
883
- generating facilities, running only what was provided instead.
884
-
885
- Note that any kwargs passed along will override anything provided
886
- to the rest of the ``SearchQuerySet``.
887
- """
888
- self._raw_query = query_string
889
- self._raw_query_params = kwargs
890
-
891
- def more_like_this(self, model_instance):
892
- """
893
- Allows backends with support for "More Like This" to return results
894
- similar to the provided instance.
895
- """
896
- self._more_like_this = True
897
- self._mlt_instance = model_instance
898
-
899
- def add_stats_query(self, stats_field, stats_facets):
900
- """Adds stats and stats_facets queries for the Solr backend."""
901
- self.stats[stats_field] = stats_facets
902
-
903
- def add_highlight(self, **kwargs):
904
- """Adds highlighting to the search results."""
905
- self.highlight = kwargs or True
906
-
907
- def add_within(self, field, point_1, point_2):
908
- """Adds bounding box parameters to search query."""
909
- from ...haystack.utils.geo import ensure_point
910
-
911
- self.within = {
912
- "field": field,
913
- "point_1": ensure_point(point_1),
914
- "point_2": ensure_point(point_2),
915
- }
916
-
917
- def add_dwithin(self, field, point, distance):
918
- """Adds radius-based parameters to search query."""
919
- from ...haystack.utils.geo import ensure_distance, ensure_point
920
-
921
- self.dwithin = {
922
- "field": field,
923
- "point": ensure_point(point),
924
- "distance": ensure_distance(distance),
925
- }
926
-
927
- def add_distance(self, field, point):
928
- """
929
- Denotes that results should include distance measurements from the
930
- point passed in.
931
- """
932
- from ...haystack.utils.geo import ensure_point
933
-
934
- self.distance_point = {"field": field, "point": ensure_point(point)}
935
-
936
- def add_field_facet(self, field, **options):
937
- """Adds a regular facet on a field."""
938
- from ...haystack import connections
939
-
940
- field_name = (
941
- connections[self._using].get_unified_index().get_facet_fieldname(field)
942
- )
943
- self.facets[field_name] = options.copy()
944
-
945
- def add_date_facet(self, field, start_date, end_date, gap_by, gap_amount=1):
946
- """Adds a date-based facet on a field."""
947
- from ...haystack import connections
948
-
949
- if gap_by not in VALID_GAPS:
950
- raise FacetingError(
951
- "The gap_by ('%s') must be one of the following: %s."
952
- % (gap_by, ", ".join(VALID_GAPS))
953
- )
954
-
955
- details = {
956
- "start_date": start_date,
957
- "end_date": end_date,
958
- "gap_by": gap_by,
959
- "gap_amount": gap_amount,
960
- }
961
- self.date_facets[
962
- connections[self._using].get_unified_index().get_facet_fieldname(field)
963
- ] = details
964
-
965
- def add_query_facet(self, field, query):
966
- """Adds a query facet on a field."""
967
- from ...haystack import connections
968
-
969
- self.query_facets.append(
970
- (
971
- connections[self._using].get_unified_index().get_facet_fieldname(field),
972
- query,
973
- )
974
- )
975
-
976
- def add_narrow_query(self, query):
977
- """
978
- Narrows a search to a subset of all documents per the query.
979
-
980
- Generally used in conjunction with faceting.
981
- """
982
- self.narrow_queries.add(query)
983
-
984
- def set_result_class(self, klass):
985
- """
986
- Sets the result class to use for results.
987
-
988
- Overrides any previous usages. If ``None`` is provided, Haystack will
989
- revert back to the default ``SearchResult`` object.
990
- """
991
- if klass is None:
992
- klass = SearchResult
993
-
994
- self.result_class = klass
995
-
996
- def post_process_facets(self, results):
997
- # Handle renaming the facet fields. Undecorate and all that.
998
- from ...haystack import connections
999
-
1000
- revised_facets = {}
1001
- field_data = connections[self._using].get_unified_index().all_searchfields()
1002
-
1003
- for facet_type, field_details in results.get("facets", {}).items():
1004
- temp_facets = {}
1005
-
1006
- for field, field_facets in field_details.items():
1007
- fieldname = field
1008
- if field in field_data and hasattr(
1009
- field_data[field], "get_facet_for_name"
1010
- ):
1011
- fieldname = field_data[field].get_facet_for_name()
1012
-
1013
- temp_facets[fieldname] = field_facets
1014
-
1015
- revised_facets[facet_type] = temp_facets
1016
-
1017
- return revised_facets
1018
-
1019
- def using(self, using=None):
1020
- """
1021
- Allows for overriding which connection should be used. This
1022
- disables the use of routers when performing the query.
1023
-
1024
- If ``None`` is provided, it has no effect on what backend is used.
1025
- """
1026
- return self._clone(using=using)
1027
-
1028
- def _reset(self):
1029
- """
1030
- Resets the instance's internal state to appear as though no query has
1031
- been run before. Only need to tweak a few variables we check.
1032
- """
1033
- self._results = None
1034
- self._hit_count = None
1035
- self._facet_counts = None
1036
- self._spelling_suggestion = SPELLING_SUGGESTION_HAS_NOT_RUN
1037
-
1038
- def _clone(self, klass=None, using=None):
1039
- if using is None:
1040
- using = self._using
1041
- else:
1042
- from ...haystack import connections
1043
-
1044
- klass = connections[using].query
1045
-
1046
- if klass is None:
1047
- klass = self.__class__
1048
-
1049
- clone = klass(using=using)
1050
- clone.query_filter = deepcopy(self.query_filter)
1051
- clone.order_by = self.order_by[:]
1052
- clone.models = self.models.copy()
1053
- clone.boost = self.boost.copy()
1054
- clone.highlight = self.highlight
1055
- clone.stats = self.stats.copy()
1056
- clone.facets = self.facets.copy()
1057
- clone.date_facets = self.date_facets.copy()
1058
- clone.query_facets = self.query_facets[:]
1059
- clone.narrow_queries = self.narrow_queries.copy()
1060
- clone.start_offset = self.start_offset
1061
- clone.end_offset = self.end_offset
1062
- clone.result_class = self.result_class
1063
- clone.within = self.within.copy()
1064
- clone.dwithin = self.dwithin.copy()
1065
- clone.distance_point = self.distance_point.copy()
1066
- clone._raw_query = self._raw_query
1067
- clone._raw_query_params = self._raw_query_params
1068
- clone.spelling_query = self.spelling_query
1069
- clone._more_like_this = self._more_like_this
1070
- clone._mlt_instance = self._mlt_instance
1071
-
1072
- return clone
1073
-
1074
-
1075
- class BaseEngine:
1076
- backend = BaseSearchBackend
1077
- query = BaseSearchQuery
1078
- unified_index = UnifiedIndex
1079
-
1080
- def __init__(self, using=None):
1081
- if using is None:
1082
- using = DEFAULT_ALIAS
1083
-
1084
- self.using = using
1085
- self.options = settings.HAYSTACK_CONNECTIONS.get(self.using, {})
1086
- self.queries = []
1087
- self._index = None
1088
- self._backend = None
1089
-
1090
- def get_backend(self):
1091
- if self._backend is None:
1092
- self._backend = self.backend(self.using, **self.options)
1093
- return self._backend
1094
-
1095
- def reset_sessions(self):
1096
- """Reset any transient connections, file handles, etc."""
1097
- self._backend = None
1098
-
1099
- def get_query(self):
1100
- return self.query(using=self.using)
1101
-
1102
- def reset_queries(self):
1103
- del self.queries[:]
1104
-
1105
- def get_unified_index(self):
1106
- if self._index is None:
1107
- self._index = self.unified_index(self.options.get("EXCLUDED_INDEXES", []))
1108
-
1109
- return self._index