core-explore-example-app 2.10.0__tar.gz → 2.11.0__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 (144) hide show
  1. core_explore_example_app-2.11.0/PKG-INFO +41 -0
  2. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/admin.py +1 -0
  3. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/apps.py +1 -0
  4. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/components/explore_data_structure/admin_site.py +1 -0
  5. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/components/explore_data_structure/models.py +1 -0
  6. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/components/persistent_query_example/admin_site.py +1 -0
  7. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/components/persistent_query_example/api.py +1 -0
  8. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/components/persistent_query_example/models.py +1 -0
  9. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/components/saved_query/admin_site.py +1 -0
  10. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/components/saved_query/api.py +1 -0
  11. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/components/saved_query/models.py +1 -0
  12. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/discover.py +1 -0
  13. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/migrations/0001_initial.py +1 -0
  14. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/permissions/discover.py +1 -0
  15. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/permissions/rights.py +1 -0
  16. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/rest/persistent_query_example/serializers.py +11 -6
  17. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/rest/persistent_query_example/views.py +1 -0
  18. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/rest/saved_query/serializers.py +1 -0
  19. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/rest/urls.py +1 -0
  20. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/settings.py +1 -0
  21. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/system/api.py +1 -0
  22. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/tasks.py +1 -0
  23. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/urls.py +1 -0
  24. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/utils/custom_checkbox_renderer.py +1 -0
  25. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/utils/mongo_query.py +1 -0
  26. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/utils/query_builder.py +1 -0
  27. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/utils/xml.py +1 -0
  28. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/views/user/ajax.py +1 -0
  29. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/views/user/views.py +1 -0
  30. core_explore_example_app-2.11.0/core_explore_example_app.egg-info/PKG-INFO +41 -0
  31. core_explore_example_app-2.11.0/core_explore_example_app.egg-info/requires.txt +7 -0
  32. core_explore_example_app-2.11.0/requirements.core.txt +3 -0
  33. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/setup.py +1 -1
  34. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/components/explore_data_structure/tests_unit.py +1 -0
  35. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/components/persistent_query_example/fixtures/fixtures.py +1 -0
  36. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/components/persistent_query_example/tests_unit.py +1 -0
  37. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/components/saved_query/tests_unit.py +1 -0
  38. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/mocks.py +1 -0
  39. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/rest/persistent_query_example/tests_permissions.py +1 -0
  40. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/rest/saved_query/tests_permissions.py +1 -0
  41. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/utils/mongo_query/tests_unit.py +1 -0
  42. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/utils/xml/tests_unit.py +1 -0
  43. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/views/ajax/tests_unit.py +1 -0
  44. core_explore_example_app-2.10.0/PKG-INFO +0 -35
  45. core_explore_example_app-2.10.0/core_explore_example_app.egg-info/PKG-INFO +0 -35
  46. core_explore_example_app-2.10.0/core_explore_example_app.egg-info/requires.txt +0 -7
  47. core_explore_example_app-2.10.0/requirements.core.txt +0 -3
  48. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/LICENSE.md +0 -0
  49. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/MANIFEST.in +0 -0
  50. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/README.rst +0 -0
  51. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/__init__.py +0 -0
  52. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/commons/__init__.py +0 -0
  53. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/commons/exceptions.py +0 -0
  54. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/components/__init__.py +0 -0
  55. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/components/explore_data_structure/__init__.py +0 -0
  56. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/components/explore_data_structure/api.py +0 -0
  57. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/components/persistent_query_example/__init__.py +0 -0
  58. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/components/saved_query/__init__.py +0 -0
  59. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/menus.py +0 -0
  60. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/migrations/__init__.py +0 -0
  61. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/models.py +0 -0
  62. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/permissions/__init__.py +0 -0
  63. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/rest/__init__.py +0 -0
  64. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/rest/persistent_query_example/__init__.py +0 -0
  65. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/rest/saved_query/__init__.py +0 -0
  66. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/rest/saved_query/views.py +0 -0
  67. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/static/core_explore_example_app/user/css/query_builder.css +0 -0
  68. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/static/core_explore_example_app/user/css/style.css +0 -0
  69. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/static/core_explore_example_app/user/css/xsd_form.css +0 -0
  70. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/static/core_explore_example_app/user/js/build_query.js +0 -0
  71. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/static/core_explore_example_app/user/js/build_query.raw.js +0 -0
  72. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/static/core_explore_example_app/user/js/buttons.raw.js +0 -0
  73. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/static/core_explore_example_app/user/js/choice.raw.js +0 -0
  74. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/static/core_explore_example_app/user/js/persistent_query.raw.js +0 -0
  75. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/static/core_explore_example_app/user/js/refresh_sorting.js +0 -0
  76. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/static/core_explore_example_app/user/js/refresh_sorting.raw.js +0 -0
  77. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/static/core_explore_example_app/user/js/select_fields.js +0 -0
  78. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/static/core_explore_example_app/user/js/select_fields.raw.js +0 -0
  79. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/system/__init__.py +0 -0
  80. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/build_query.html +0 -0
  81. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/errors.html +0 -0
  82. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/index.html +0 -0
  83. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/list/list.html +0 -0
  84. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/modals/custom_tree.html +0 -0
  85. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/modals/delete_all_queries.html +0 -0
  86. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/modals/delete_query.html +0 -0
  87. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/modals/errors.html +0 -0
  88. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/modals/sub_elements_query_builder.html +0 -0
  89. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/add.html +0 -0
  90. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/and_or_not.html +0 -0
  91. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/criteria_select.html +0 -0
  92. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/enum.html +0 -0
  93. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/field_input.html +0 -0
  94. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/gregorian_strict_match.html +0 -0
  95. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/initial_form.html +0 -0
  96. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/input.html +0 -0
  97. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/new_criteria.html +0 -0
  98. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/new_query.html +0 -0
  99. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/numeric_select.html +0 -0
  100. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/remove.html +0 -0
  101. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/string_select.html +0 -0
  102. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/sub_elements_query.html +0 -0
  103. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/yes_no.html +0 -0
  104. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/results.html +0 -0
  105. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/templates/core_explore_example_app/user/select_fields.html +0 -0
  106. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/utils/__init__.py +0 -0
  107. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/utils/displayed_query.py +0 -0
  108. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/utils/parser.py +0 -0
  109. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/views/__init__.py +0 -0
  110. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/views/admin/__init__.py +0 -0
  111. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app/views/user/__init__.py +0 -0
  112. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app.egg-info/SOURCES.txt +0 -0
  113. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app.egg-info/dependency_links.txt +0 -0
  114. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/core_explore_example_app.egg-info/top_level.txt +0 -0
  115. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/docs/__init__.py +0 -0
  116. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/docs/conf.py +0 -0
  117. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/docs/conf_urls.py +0 -0
  118. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/pyproject.toml +0 -0
  119. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/setup.cfg +0 -0
  120. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/__init__.py +0 -0
  121. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/components/__init__.py +0 -0
  122. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/components/data/__init__.py +0 -0
  123. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/components/data/fixtures/__init__.py +0 -0
  124. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/components/data/fixtures/fixtures.py +0 -0
  125. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/components/explore_data_structure/__init__.py +0 -0
  126. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/components/persistent_query_example/__init__.py +0 -0
  127. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/components/persistent_query_example/fixtures/__init__.py +0 -0
  128. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/components/persistent_query_example/tests_int_access_control.py +0 -0
  129. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/components/saved_query/__init__.py +0 -0
  130. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/rest/__init__.py +0 -0
  131. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/rest/persistent_query_example/__init__.py +0 -0
  132. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/rest/persistent_query_example/tests_int.py +0 -0
  133. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/rest/saved_query/__init__.py +0 -0
  134. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/rest/saved_query/fixtures/__init__.py +0 -0
  135. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/rest/saved_query/fixtures/fixtures.py +0 -0
  136. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/rest/saved_query/tests_int.py +0 -0
  137. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/test_settings.py +0 -0
  138. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/utils/__init__.py +0 -0
  139. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/utils/mongo_query/__init__.py +0 -0
  140. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/utils/xml/__init__.py +0 -0
  141. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/views/__init__.py +0 -0
  142. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/views/ajax/__init__.py +0 -0
  143. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/views/views/__init__.py +0 -0
  144. {core_explore_example_app-2.10.0 → core_explore_example_app-2.11.0}/tests/views/views/tests_int.py +0 -0
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.1
2
+ Name: core_explore_example_app
3
+ Version: 2.11.0
4
+ Summary: Exploration by example for the curator core project
5
+ Home-page: https://github.com/usnistgov/core_explore_example_app
6
+ Author: NIST IT Lab
7
+ Author-email: itl_inquiries@nist.gov
8
+ License-File: LICENSE.md
9
+ Requires-Dist: celery
10
+ Requires-Dist: Django
11
+ Requires-Dist: djangorestframework
12
+ Requires-Dist: django-simple-menu
13
+ Requires-Dist: core-main-app==2.11.*
14
+ Requires-Dist: core-explore-common-app==2.11.*
15
+ Requires-Dist: core-parser-app==2.11.*
16
+
17
+ ========================
18
+ Core Explore Example App
19
+ ========================
20
+
21
+ Exploration by example for the curator core project.
22
+
23
+ Quick start
24
+ ===========
25
+
26
+ 1. Add "core_explore_example_app" to your INSTALLED_APPS setting
27
+ ----------------------------------------------------------------
28
+
29
+ .. code:: python
30
+
31
+ INSTALLED_APPS = [
32
+ ...
33
+ 'core_explore_example_app',
34
+ ]
35
+
36
+ 2. Include the core_explore_example_app URLconf in your project urls.py
37
+ -----------------------------------------------------------------------
38
+
39
+ .. code:: python
40
+
41
+ url(r'^explore/example/', include('core_explore_example_app.urls')),
@@ -1,5 +1,6 @@
1
1
  """Url router for the administration site
2
2
  """
3
+
3
4
  from django.contrib import admin
4
5
 
5
6
  from core_main_app.admin import core_admin_site
@@ -1,5 +1,6 @@
1
1
  """ Apps file for setting core package when app is ready
2
2
  """
3
+
3
4
  import sys
4
5
 
5
6
  from django.apps import AppConfig
@@ -1,5 +1,6 @@
1
1
  """ Custom admin site for the Explore Data Structure model
2
2
  """
3
+
3
4
  from django.contrib import admin
4
5
 
5
6
 
@@ -1,5 +1,6 @@
1
1
  """Explore Data Structure
2
2
  """
3
+
3
4
  from django.core.exceptions import ObjectDoesNotExist
4
5
  from django.db import models
5
6
 
@@ -1,5 +1,6 @@
1
1
  """ Custom admin site for the Persistent Query Example model
2
2
  """
3
+
3
4
  from django.contrib import admin
4
5
 
5
6
 
@@ -1,5 +1,6 @@
1
1
  """ Persistent Query Example API
2
2
  """
3
+
3
4
  from core_main_app.access_control.api import has_perm_administration
4
5
  from core_main_app.access_control.decorators import access_control
5
6
  from core_explore_common_app.access_control.api import (
@@ -1,5 +1,6 @@
1
1
  """ Persistent Query Example model
2
2
  """
3
+
3
4
  from django.core.exceptions import ObjectDoesNotExist
4
5
 
5
6
  from core_explore_common_app.components.abstract_persistent_query.models import (
@@ -1,5 +1,6 @@
1
1
  """ Custom admin site for the Saved Query
2
2
  """
3
+
3
4
  from django.contrib import admin
4
5
 
5
6
 
@@ -1,5 +1,6 @@
1
1
  """Saved Query API
2
2
  """
3
+
3
4
  from core_explore_example_app.components.saved_query.models import SavedQuery
4
5
 
5
6
 
@@ -1,5 +1,6 @@
1
1
  """Saved query model
2
2
  """
3
+
3
4
  from django.core.exceptions import ObjectDoesNotExist
4
5
  from django.db import models
5
6
 
@@ -1,5 +1,6 @@
1
1
  """ Auto discovery of explore example app.
2
2
  """
3
+
3
4
  import logging
4
5
 
5
6
  from django.core.exceptions import ObjectDoesNotExist
@@ -1,5 +1,6 @@
1
1
  """ Migrations
2
2
  """
3
+
3
4
  # Generated by Django 3.2 on 2021-12-08 21:37
4
5
 
5
6
  from django.db import migrations, models
@@ -1,5 +1,6 @@
1
1
  """ Discover rules for core explore example app.
2
2
  """
3
+
3
4
  import logging
4
5
 
5
6
  from core_main_app.permissions import rights as main_rights
@@ -1,5 +1,6 @@
1
1
  """ Rights for core explore example app
2
2
  """
3
+
3
4
  EXPLORE_EXAMPLE_CONTENT_TYPE = "core_explore_example_app"
4
5
  EXPLORE_EXAMPLE_ACCESS = "access_explore_example"
5
6
  EXPLORE_EXAMPLE_SAVE_QUERY = "save_query"
@@ -1,5 +1,6 @@
1
1
  """ Serializers used for the persistent query example REST API.
2
2
  """
3
+
3
4
  from rest_framework.serializers import ModelSerializer
4
5
 
5
6
  from core_explore_example_app.components.persistent_query_example import (
@@ -26,9 +27,11 @@ class PersistentQueryExampleSerializer(ModelSerializer):
26
27
  # Create instance from the validated data and insert it in DB
27
28
  persistent_query_example = PersistentQueryExample(
28
29
  user_id=str(self.context["request"].user.id),
29
- content=validated_data["content"]
30
- if "content" in validated_data
31
- else None,
30
+ content=(
31
+ validated_data["content"]
32
+ if "content" in validated_data
33
+ else None
34
+ ),
32
35
  name=validated_data["name"] if "name" in validated_data else None,
33
36
  )
34
37
  persistent_query_example_api.upsert(
@@ -74,9 +77,11 @@ class PersistentQueryExampleAdminSerializer(ModelSerializer):
74
77
  # Create data
75
78
  persistent_query_example = PersistentQueryExample(
76
79
  user_id=validated_data["user_id"],
77
- content=validated_data["content"]
78
- if "content" in validated_data
79
- else None,
80
+ content=(
81
+ validated_data["content"]
82
+ if "content" in validated_data
83
+ else None
84
+ ),
80
85
  name=validated_data["name"] if "name" in validated_data else None,
81
86
  )
82
87
  persistent_query_example_api.upsert(
@@ -1,5 +1,6 @@
1
1
  """ REST views for the Persistent Query Example.
2
2
  """
3
+
3
4
  from django.db import IntegrityError
4
5
  from rest_framework import status
5
6
  from rest_framework.exceptions import ValidationError
@@ -1,5 +1,6 @@
1
1
  """ Saved Query Serializers
2
2
  """
3
+
3
4
  from rest_framework.serializers import ModelSerializer
4
5
 
5
6
  from core_explore_example_app.components.saved_query.models import SavedQuery
@@ -1,5 +1,6 @@
1
1
  """ Url router for the REST API
2
2
  """
3
+
3
4
  from django.urls import re_path
4
5
  from rest_framework.urlpatterns import format_suffix_patterns
5
6
 
@@ -3,6 +3,7 @@
3
3
  Settings with the following syntax can be overwritten at the project level:
4
4
  SETTING_NAME = getattr(settings, "SETTING_NAME", "Default Value")
5
5
  """
6
+
6
7
  from django.conf import settings
7
8
 
8
9
  if not settings.configured:
@@ -1,5 +1,6 @@
1
1
  """ System API
2
2
  """
3
+
3
4
  from core_explore_example_app.apps import ExploreExampleAppConfig
4
5
  from core_explore_example_app.components.saved_query.models import SavedQuery
5
6
 
@@ -1,5 +1,6 @@
1
1
  """ Explore Common App tasks
2
2
  """
3
+
3
4
  import logging
4
5
 
5
6
  from celery import shared_task
@@ -1,5 +1,6 @@
1
1
  """ Url router for the explore example application
2
2
  """
3
+
3
4
  from django.conf.urls import include
4
5
  from django.urls import re_path
5
6
 
@@ -1,5 +1,6 @@
1
1
  """Custom Checkbox Renderer class
2
2
  """
3
+
3
4
  from core_parser_app.tools.parser.renderer.checkbox import CheckboxRenderer
4
5
 
5
6
 
@@ -1,5 +1,6 @@
1
1
  """Util to build queries for mongo db
2
2
  """
3
+
3
4
  import json
4
5
  import re
5
6
  from typing import List, Any
@@ -1,5 +1,6 @@
1
1
  """Utils for the query builder
2
2
  """
3
+
3
4
  from os.path import join
4
5
 
5
6
  from django.template import loader
@@ -1,5 +1,6 @@
1
1
  """XML utils
2
2
  """
3
+
3
4
  from core_main_app.commons.exceptions import XMLError, QueryError
4
5
  from core_main_app.utils.query.mongo.prepare import (
5
6
  sanitize_number,
@@ -1,5 +1,6 @@
1
1
  """Explore Example app Ajax views
2
2
  """
3
+
3
4
  import json
4
5
  import logging
5
6
 
@@ -1,5 +1,6 @@
1
1
  """Explore example user views
2
2
  """
3
+
3
4
  import json
4
5
 
5
6
  from django.urls import reverse
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.1
2
+ Name: core_explore_example_app
3
+ Version: 2.11.0
4
+ Summary: Exploration by example for the curator core project
5
+ Home-page: https://github.com/usnistgov/core_explore_example_app
6
+ Author: NIST IT Lab
7
+ Author-email: itl_inquiries@nist.gov
8
+ License-File: LICENSE.md
9
+ Requires-Dist: celery
10
+ Requires-Dist: Django
11
+ Requires-Dist: djangorestframework
12
+ Requires-Dist: django-simple-menu
13
+ Requires-Dist: core-main-app==2.11.*
14
+ Requires-Dist: core-explore-common-app==2.11.*
15
+ Requires-Dist: core-parser-app==2.11.*
16
+
17
+ ========================
18
+ Core Explore Example App
19
+ ========================
20
+
21
+ Exploration by example for the curator core project.
22
+
23
+ Quick start
24
+ ===========
25
+
26
+ 1. Add "core_explore_example_app" to your INSTALLED_APPS setting
27
+ ----------------------------------------------------------------
28
+
29
+ .. code:: python
30
+
31
+ INSTALLED_APPS = [
32
+ ...
33
+ 'core_explore_example_app',
34
+ ]
35
+
36
+ 2. Include the core_explore_example_app URLconf in your project urls.py
37
+ -----------------------------------------------------------------------
38
+
39
+ .. code:: python
40
+
41
+ url(r'^explore/example/', include('core_explore_example_app.urls')),
@@ -0,0 +1,7 @@
1
+ celery
2
+ Django
3
+ djangorestframework
4
+ django-simple-menu
5
+ core-main-app==2.11.*
6
+ core-explore-common-app==2.11.*
7
+ core-parser-app==2.11.*
@@ -0,0 +1,3 @@
1
+ core-main-app==2.11.*
2
+ core-explore-common-app==2.11.*
3
+ core-parser-app==2.11.*
@@ -37,7 +37,7 @@ chdir(normpath(join(abspath(__file__), pardir)))
37
37
 
38
38
  setup(
39
39
  name="core_explore_example_app",
40
- version="2.10.0",
40
+ version="2.11.0",
41
41
  description="Exploration by example for the curator core project",
42
42
  long_description=long_desc,
43
43
  author="NIST IT Lab",
@@ -1,5 +1,6 @@
1
1
  """ Unit Test Explore Data Structure
2
2
  """
3
+
3
4
  from unittest.case import TestCase
4
5
 
5
6
  from unittest.mock import patch
@@ -1,5 +1,6 @@
1
1
  """ Fixtures files for Persistent Query Example
2
2
  """
3
+
3
4
  from core_main_app.components.template.models import Template
4
5
  from core_main_app.utils.integration_tests.fixture_interface import (
5
6
  FixtureInterface,
@@ -1,5 +1,6 @@
1
1
  """ Unit tests for PersistentQueryExample.
2
2
  """
3
+
3
4
  from unittest import TestCase, mock
4
5
 
5
6
  from unittest.mock import patch
@@ -1,5 +1,6 @@
1
1
  """ Unit Test Saved Query
2
2
  """
3
+
3
4
  from unittest.case import TestCase
4
5
  from unittest.mock import patch, Mock
5
6
 
@@ -1,5 +1,6 @@
1
1
  """ Mock objects
2
2
  """
3
+
3
4
  from unittest.mock import Mock
4
5
 
5
6
 
@@ -1,5 +1,6 @@
1
1
  """ Authentication tests for PersistentQueryExample REST API.
2
2
  """
3
+
3
4
  from unittest.mock import patch
4
5
 
5
6
  from django.contrib.auth.models import AnonymousUser
@@ -1,5 +1,6 @@
1
1
  """ Authentication tests for Saved Query REST API
2
2
  """
3
+
3
4
  from django.test import SimpleTestCase
4
5
  from unittest.mock import patch
5
6
  from rest_framework import status
@@ -1,5 +1,6 @@
1
1
  """ Build Criteria Regression Test
2
2
  """
3
+
3
4
  from unittest.case import TestCase
4
5
 
5
6
  from core_explore_example_app.utils.mongo_query import (
@@ -1,5 +1,6 @@
1
1
  """ Unit tests for XML utilities.
2
2
  """
3
+
3
4
  from unittest import TestCase
4
5
 
5
6
  from core_explore_example_app.utils.xml import validate_element_value
@@ -1,5 +1,6 @@
1
1
  """ Test user AJAX views
2
2
  """
3
+
3
4
  import json
4
5
  from unittest import TestCase, mock
5
6
  from unittest.mock import MagicMock, patch
@@ -1,35 +0,0 @@
1
- Metadata-Version: 1.0
2
- Name: core_explore_example_app
3
- Version: 2.10.0
4
- Summary: Exploration by example for the curator core project
5
- Home-page: https://github.com/usnistgov/core_explore_example_app
6
- Author: NIST IT Lab
7
- Author-email: itl_inquiries@nist.gov
8
- License: UNKNOWN
9
- Description: ========================
10
- Core Explore Example App
11
- ========================
12
-
13
- Exploration by example for the curator core project.
14
-
15
- Quick start
16
- ===========
17
-
18
- 1. Add "core_explore_example_app" to your INSTALLED_APPS setting
19
- ----------------------------------------------------------------
20
-
21
- .. code:: python
22
-
23
- INSTALLED_APPS = [
24
- ...
25
- 'core_explore_example_app',
26
- ]
27
-
28
- 2. Include the core_explore_example_app URLconf in your project urls.py
29
- -----------------------------------------------------------------------
30
-
31
- .. code:: python
32
-
33
- url(r'^explore/example/', include('core_explore_example_app.urls')),
34
-
35
- Platform: UNKNOWN
@@ -1,35 +0,0 @@
1
- Metadata-Version: 1.0
2
- Name: core-explore-example-app
3
- Version: 2.10.0
4
- Summary: Exploration by example for the curator core project
5
- Home-page: https://github.com/usnistgov/core_explore_example_app
6
- Author: NIST IT Lab
7
- Author-email: itl_inquiries@nist.gov
8
- License: UNKNOWN
9
- Description: ========================
10
- Core Explore Example App
11
- ========================
12
-
13
- Exploration by example for the curator core project.
14
-
15
- Quick start
16
- ===========
17
-
18
- 1. Add "core_explore_example_app" to your INSTALLED_APPS setting
19
- ----------------------------------------------------------------
20
-
21
- .. code:: python
22
-
23
- INSTALLED_APPS = [
24
- ...
25
- 'core_explore_example_app',
26
- ]
27
-
28
- 2. Include the core_explore_example_app URLconf in your project urls.py
29
- -----------------------------------------------------------------------
30
-
31
- .. code:: python
32
-
33
- url(r'^explore/example/', include('core_explore_example_app.urls')),
34
-
35
- Platform: UNKNOWN
@@ -1,7 +0,0 @@
1
- celery
2
- Django
3
- djangorestframework
4
- django-simple-menu
5
- core-main-app==2.10.*
6
- core-explore-common-app==2.10.*
7
- core-parser-app==2.10.*
@@ -1,3 +0,0 @@
1
- core-main-app==2.10.*
2
- core-explore-common-app==2.10.*
3
- core-parser-app==2.10.*