core-explore-example-app 2.4.0__tar.gz → 2.6.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 (142) hide show
  1. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/PKG-INFO +1 -1
  2. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/build_query.html +1 -1
  3. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/modals/custom_tree.html +1 -1
  4. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/modals/delete_all_queries.html +1 -1
  5. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/modals/delete_query.html +1 -1
  6. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/modals/errors.html +1 -1
  7. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/modals/sub_elements_query_builder.html +1 -1
  8. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/results.html +1 -1
  9. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/views/user/views.py +7 -2
  10. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app.egg-info/PKG-INFO +1 -1
  11. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app.egg-info/SOURCES.txt +6 -1
  12. core_explore_example_app-2.6.0/core_explore_example_app.egg-info/requires.txt +7 -0
  13. core_explore_example_app-2.6.0/requirements.core.txt +3 -0
  14. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/setup.py +1 -1
  15. core_explore_example_app-2.6.0/tests/components/data/fixtures/fixtures.py +109 -0
  16. core_explore_example_app-2.6.0/tests/views/__init__.py +0 -0
  17. core_explore_example_app-2.6.0/tests/views/ajax/__init__.py +0 -0
  18. core_explore_example_app-2.6.0/tests/views/views/__init__.py +0 -0
  19. core_explore_example_app-2.6.0/tests/views/views/tests_int.py +65 -0
  20. core_explore_example_app-2.4.0/core_explore_example_app.egg-info/requires.txt +0 -8
  21. core_explore_example_app-2.4.0/requirements.core.txt +0 -4
  22. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/LICENSE.md +0 -0
  23. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/MANIFEST.in +0 -0
  24. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/README.rst +0 -0
  25. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/__init__.py +0 -0
  26. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/admin.py +0 -0
  27. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/apps.py +0 -0
  28. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/commons/__init__.py +0 -0
  29. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/commons/exceptions.py +0 -0
  30. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/__init__.py +0 -0
  31. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/explore_data_structure/__init__.py +0 -0
  32. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/explore_data_structure/admin_site.py +0 -0
  33. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/explore_data_structure/api.py +0 -0
  34. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/explore_data_structure/models.py +0 -0
  35. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/persistent_query_example/__init__.py +0 -0
  36. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/persistent_query_example/admin_site.py +0 -0
  37. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/persistent_query_example/api.py +0 -0
  38. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/persistent_query_example/models.py +0 -0
  39. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/saved_query/__init__.py +0 -0
  40. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/saved_query/admin_site.py +0 -0
  41. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/saved_query/api.py +0 -0
  42. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/saved_query/models.py +0 -0
  43. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/discover.py +0 -0
  44. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/menus.py +0 -0
  45. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/migrations/0001_initial.py +0 -0
  46. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/migrations/__init__.py +0 -0
  47. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/models.py +0 -0
  48. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/permissions/__init__.py +0 -0
  49. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/permissions/discover.py +0 -0
  50. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/permissions/rights.py +0 -0
  51. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/__init__.py +0 -0
  52. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/persistent_query_example/__init__.py +0 -0
  53. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/persistent_query_example/serializers.py +0 -0
  54. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/persistent_query_example/views.py +0 -0
  55. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/saved_query/__init__.py +0 -0
  56. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/saved_query/serializers.py +0 -0
  57. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/saved_query/views.py +0 -0
  58. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/urls.py +0 -0
  59. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/settings.py +0 -0
  60. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/css/query_builder.css +0 -0
  61. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/css/style.css +0 -0
  62. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/css/xsd_form.css +0 -0
  63. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/build_query.js +0 -0
  64. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/build_query.raw.js +0 -0
  65. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/buttons.raw.js +0 -0
  66. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/choice.raw.js +0 -0
  67. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/persistent_query.raw.js +0 -0
  68. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/refresh_sorting.js +0 -0
  69. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/refresh_sorting.raw.js +0 -0
  70. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/select_fields.js +0 -0
  71. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/select_fields.raw.js +0 -0
  72. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/system/__init__.py +0 -0
  73. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/system/api.py +0 -0
  74. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/tasks.py +0 -0
  75. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/errors.html +0 -0
  76. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/index.html +0 -0
  77. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/list/list.html +0 -0
  78. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/add.html +0 -0
  79. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/and_or_not.html +0 -0
  80. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/criteria_select.html +0 -0
  81. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/enum.html +0 -0
  82. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/field_input.html +0 -0
  83. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/gregorian_strict_match.html +0 -0
  84. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/initial_form.html +0 -0
  85. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/input.html +0 -0
  86. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/new_criteria.html +0 -0
  87. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/new_query.html +0 -0
  88. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/numeric_select.html +0 -0
  89. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/remove.html +0 -0
  90. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/string_select.html +0 -0
  91. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/sub_elements_query.html +0 -0
  92. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/yes_no.html +0 -0
  93. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/select_fields.html +0 -0
  94. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/urls.py +0 -0
  95. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/utils/__init__.py +0 -0
  96. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/utils/custom_checkbox_renderer.py +0 -0
  97. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/utils/displayed_query.py +0 -0
  98. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/utils/mongo_query.py +0 -0
  99. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/utils/parser.py +0 -0
  100. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/utils/query_builder.py +0 -0
  101. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/utils/xml.py +0 -0
  102. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/views/__init__.py +0 -0
  103. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/views/admin/__init__.py +0 -0
  104. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/views/user/__init__.py +0 -0
  105. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app/views/user/ajax.py +0 -0
  106. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app.egg-info/dependency_links.txt +0 -0
  107. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/core_explore_example_app.egg-info/top_level.txt +0 -0
  108. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/docs/__init__.py +0 -0
  109. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/docs/conf.py +0 -0
  110. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/docs/conf_urls.py +0 -0
  111. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/pyproject.toml +0 -0
  112. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/setup.cfg +0 -0
  113. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/__init__.py +0 -0
  114. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/components/__init__.py +0 -0
  115. {core_explore_example_app-2.4.0/tests/components/explore_data_structure → core_explore_example_app-2.6.0/tests/components/data}/__init__.py +0 -0
  116. {core_explore_example_app-2.4.0/tests/components/persistent_query_example → core_explore_example_app-2.6.0/tests/components/data/fixtures}/__init__.py +0 -0
  117. {core_explore_example_app-2.4.0/tests/components/persistent_query_example/fixtures → core_explore_example_app-2.6.0/tests/components/explore_data_structure}/__init__.py +0 -0
  118. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/components/explore_data_structure/tests_unit.py +0 -0
  119. {core_explore_example_app-2.4.0/tests/components/saved_query → core_explore_example_app-2.6.0/tests/components/persistent_query_example}/__init__.py +0 -0
  120. {core_explore_example_app-2.4.0/tests/rest → core_explore_example_app-2.6.0/tests/components/persistent_query_example/fixtures}/__init__.py +0 -0
  121. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/components/persistent_query_example/fixtures/fixtures.py +0 -0
  122. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/components/persistent_query_example/tests_int_access_control.py +0 -0
  123. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/components/persistent_query_example/tests_unit.py +0 -0
  124. {core_explore_example_app-2.4.0/tests/rest/persistent_query_example → core_explore_example_app-2.6.0/tests/components/saved_query}/__init__.py +0 -0
  125. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/components/saved_query/tests_unit.py +0 -0
  126. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/mocks.py +0 -0
  127. {core_explore_example_app-2.4.0/tests/rest/saved_query → core_explore_example_app-2.6.0/tests/rest}/__init__.py +0 -0
  128. {core_explore_example_app-2.4.0/tests/rest/saved_query/fixtures → core_explore_example_app-2.6.0/tests/rest/persistent_query_example}/__init__.py +0 -0
  129. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/rest/persistent_query_example/tests_int.py +0 -0
  130. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/rest/persistent_query_example/tests_permissions.py +0 -0
  131. {core_explore_example_app-2.4.0/tests/utils → core_explore_example_app-2.6.0/tests/rest/saved_query}/__init__.py +0 -0
  132. {core_explore_example_app-2.4.0/tests/utils/mongo_query → core_explore_example_app-2.6.0/tests/rest/saved_query/fixtures}/__init__.py +0 -0
  133. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/rest/saved_query/fixtures/fixtures.py +0 -0
  134. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/rest/saved_query/tests_int.py +0 -0
  135. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/rest/saved_query/tests_permissions.py +0 -0
  136. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/test_settings.py +0 -0
  137. {core_explore_example_app-2.4.0/tests/utils/xml → core_explore_example_app-2.6.0/tests/utils}/__init__.py +0 -0
  138. {core_explore_example_app-2.4.0/tests/views → core_explore_example_app-2.6.0/tests/utils/mongo_query}/__init__.py +0 -0
  139. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/utils/mongo_query/tests_unit.py +0 -0
  140. {core_explore_example_app-2.4.0/tests/views/ajax → core_explore_example_app-2.6.0/tests/utils/xml}/__init__.py +0 -0
  141. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/utils/xml/tests_unit.py +0 -0
  142. {core_explore_example_app-2.4.0 → core_explore_example_app-2.6.0}/tests/views/ajax/tests_unit.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: core_explore_example_app
3
- Version: 2.4.0
3
+ Version: 2.6.0
4
4
  Summary: Exploration by example for the curator core project
5
5
  Home-page: https://github.com/usnistgov/core_explore_example_app
6
6
  Author: NIST IT Lab
@@ -15,7 +15,7 @@
15
15
  {% include data.query_builder_interface|safe %}
16
16
  </div>
17
17
  {% endif %}
18
- <form class="{% if BOOTSTRAP_VERSION == "4.6.2" %}ml-4{% elif BOOTSTRAP_VERSION == "5.1.3" %}ms-4{% endif %}">
18
+ <form class="{% if BOOTSTRAP_VERSION|first == "4" %}ml-4{% elif BOOTSTRAP_VERSION|first == "5" %}ms-4{% endif %}">
19
19
  <button type="button" class="btn btn-danger" onclick="clearCriteria()">
20
20
  <i class="fas fa-eraser"></i> Clear
21
21
  </button>
@@ -26,7 +26,7 @@
26
26
  <div id="current_criteria" style="display:none;"></div>
27
27
  {% endblock %}
28
28
  {% block modal_footer %}
29
- <a class="btn btn-secondary pull-left" {% if BOOTSTRAP_VERSION == "4.6.2" %}data-dismiss{% elif BOOTSTRAP_VERSION == "5.1.3" %}data-bs-dismiss{% endif %}="modal" href="#">
29
+ <a class="btn btn-secondary pull-left" {% if BOOTSTRAP_VERSION|first == "4" %}data-dismiss{% elif BOOTSTRAP_VERSION|first == "5" %}data-bs-dismiss{% endif %}="modal" href="#">
30
30
  <i class="fas fa-times"></i> Cancel
31
31
  </a>
32
32
  {% endblock %}
@@ -7,7 +7,7 @@
7
7
  <p>Are you sure you want to delete all your saved queries?</p>
8
8
  {% endblock %}
9
9
  {% block modal_footer %}
10
- <a class="btn btn-secondary pull-left" {% if BOOTSTRAP_VERSION == "4.6.2" %}data-dismiss{% elif BOOTSTRAP_VERSION == "5.1.3" %}data-bs-dismiss{% endif %}="modal" href="#">
10
+ <a class="btn btn-secondary pull-left" {% if BOOTSTRAP_VERSION|first == "4" %}data-dismiss{% elif BOOTSTRAP_VERSION|first == "5" %}data-bs-dismiss{% endif %}="modal" href="#">
11
11
  <i class="fas fa-times"></i> Cancel
12
12
  </a>
13
13
  <button id="delete-all-queries" class="btn btn-danger"><i class="fas fa-trash"></i> Delete</button>
@@ -8,7 +8,7 @@
8
8
  <div id="saved_query_id" style="display:none;"></div>
9
9
  {% endblock %}
10
10
  {% block modal_footer %}
11
- <button class="btn btn-secondary pull-left" {% if BOOTSTRAP_VERSION == "4.6.2" %}data-dismiss{% elif BOOTSTRAP_VERSION == "5.1.3" %}data-bs-dismiss{% endif %}="modal">
11
+ <button class="btn btn-secondary pull-left" {% if BOOTSTRAP_VERSION|first == "4" %}data-dismiss{% elif BOOTSTRAP_VERSION|first == "5" %}data-bs-dismiss{% endif %}="modal">
12
12
  <i class="fas fa-times"></i> Cancel
13
13
  </button>
14
14
  <button id="delete-query" class="btn btn-danger"><i class="fas fa-trash"></i> Delete</button>
@@ -7,7 +7,7 @@
7
7
  <p id="listErrors" style="color: red;"></p>
8
8
  {% endblock %}
9
9
  {% block modal_footer %}
10
- <a class="btn btn-secondary pull-left" {% if BOOTSTRAP_VERSION == "4.6.2" %}data-dismiss{% elif BOOTSTRAP_VERSION == "5.1.3" %}data-bs-dismiss{% endif %}="modal" href="#">
10
+ <a class="btn btn-secondary pull-left" {% if BOOTSTRAP_VERSION|first == "4" %}data-dismiss{% elif BOOTSTRAP_VERSION|first == "5" %}data-bs-dismiss{% endif %}="modal" href="#">
11
11
  <i class="fas fa-times"></i> Cancel
12
12
  </a>
13
13
  {% endblock %}
@@ -9,7 +9,7 @@
9
9
  <div id="leaves_id" style="display:none;"></div>
10
10
  {% endblock %}
11
11
  {% block modal_footer %}
12
- <a class="btn btn-secondary pull-left" {% if BOOTSTRAP_VERSION == "4.6.2" %}data-dismiss{% elif BOOTSTRAP_VERSION == "5.1.3" %}data-bs-dismiss{% endif %}="modal" href="#">
12
+ <a class="btn btn-secondary pull-left" {% if BOOTSTRAP_VERSION|first == "4" %}data-dismiss{% elif BOOTSTRAP_VERSION|first == "5" %}data-bs-dismiss{% endif %}="modal" href="#">
13
13
  <i class="fas fa-times"></i> Cancel
14
14
  </a>
15
15
  <a id="sub_elements_query_insert" class="btn btn-primary" href="#">
@@ -7,7 +7,7 @@
7
7
  }
8
8
  </style>
9
9
 
10
- <div class="{% if BOOTSTRAP_VERSION == "4.6.2" %}float-right{% elif BOOTSTRAP_VERSION == "5.1.3" %}float-end{% endif %}">
10
+ <div class="{% if BOOTSTRAP_VERSION|first == "4" %}float-right{% elif BOOTSTRAP_VERSION|first == "5" %}float-end{% endif %}">
11
11
  <a {% if back_to_builder %} href="{% url data.back_to_query_redirect data.template_id data.query_id %}"
12
12
  {% else %} id="btn-previous-page" {% endif %}
13
13
  class="btn btn-secondary" role="button"><i class="fas fa-arrow-left"></i> Back to Query</a>
@@ -30,6 +30,7 @@ from core_explore_example_app.settings import INSTALLED_APPS
30
30
  from core_explore_example_app.utils.parser import render_form
31
31
  from core_main_app.commons import exceptions as exceptions
32
32
  from core_main_app.components.template import api as template_api
33
+ from core_main_app.components.template.models import Template
33
34
  from core_main_app.components.template_version_manager import (
34
35
  api as template_version_manager_api,
35
36
  )
@@ -93,7 +94,9 @@ class IndexView(View):
93
94
  List of all global version managers
94
95
 
95
96
  """
96
- return self.api.get_active_global_version_manager(request=request)
97
+ return self.api.get_active_global_version_manager(
98
+ request=request
99
+ ).filter(template__format=Template.XSD)
97
100
 
98
101
  def get_user_active_list(self, request):
99
102
  """Get all active version managers with given user id.
@@ -105,7 +108,9 @@ class IndexView(View):
105
108
  List of all global version managers with given user.
106
109
 
107
110
  """
108
- return self.api.get_active_version_manager_by_user_id(request=request)
111
+ return self.api.get_active_version_manager_by_user_id(
112
+ request=request
113
+ ).filter(template__format=Template.XSD)
109
114
 
110
115
 
111
116
  class SelectFieldsView(View):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: core-explore-example-app
3
- Version: 2.4.0
3
+ Version: 2.6.0
4
4
  Summary: Exploration by example for the curator core project
5
5
  Home-page: https://github.com/usnistgov/core_explore_example_app
6
6
  Author: NIST IT Lab
@@ -105,6 +105,9 @@ tests/__init__.py
105
105
  tests/mocks.py
106
106
  tests/test_settings.py
107
107
  tests/components/__init__.py
108
+ tests/components/data/__init__.py
109
+ tests/components/data/fixtures/__init__.py
110
+ tests/components/data/fixtures/fixtures.py
108
111
  tests/components/explore_data_structure/__init__.py
109
112
  tests/components/explore_data_structure/tests_unit.py
110
113
  tests/components/persistent_query_example/__init__.py
@@ -130,4 +133,6 @@ tests/utils/xml/__init__.py
130
133
  tests/utils/xml/tests_unit.py
131
134
  tests/views/__init__.py
132
135
  tests/views/ajax/__init__.py
133
- tests/views/ajax/tests_unit.py
136
+ tests/views/ajax/tests_unit.py
137
+ tests/views/views/__init__.py
138
+ tests/views/views/tests_int.py
@@ -0,0 +1,7 @@
1
+ celery
2
+ Django
3
+ djangorestframework
4
+ django-simple-menu
5
+ core-main-app==2.6.*
6
+ core-explore-common-app==2.6.*
7
+ core-parser-app==2.6.*
@@ -0,0 +1,3 @@
1
+ core-main-app==2.6.*
2
+ core-explore-common-app==2.6.*
3
+ core-parser-app==2.6.*
@@ -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.4.0",
40
+ version="2.6.0",
41
41
  description="Exploration by example for the curator core project",
42
42
  long_description=long_desc,
43
43
  author="NIST IT Lab",
@@ -0,0 +1,109 @@
1
+ """ Fixtures files for Data
2
+ """
3
+
4
+ from core_main_app.components.template.models import Template
5
+ from core_main_app.components.template_version_manager.models import (
6
+ TemplateVersionManager,
7
+ )
8
+ from core_main_app.utils.integration_tests.fixture_interface import (
9
+ FixtureInterface,
10
+ )
11
+
12
+
13
+ class DataFixtures(FixtureInterface):
14
+ """Data fixtures"""
15
+
16
+ user_xsd_template = None
17
+ user_json_template = None
18
+ user_template_vm_xsd = None
19
+ user_template_vm_json = None
20
+ global_xsd_template = None
21
+ global_json_template = None
22
+ global_template_vm_xsd = None
23
+ global_template_vm_json = None
24
+ data_collection = None
25
+
26
+ def insert_data(self):
27
+ """Insert a set of Data.
28
+
29
+ Returns:
30
+
31
+ """
32
+ # Make a connexion with a mock database
33
+ self.generate_templates()
34
+
35
+ def generate_templates(self):
36
+ """Generate Templates.
37
+
38
+ Returns:
39
+
40
+ """
41
+ self.user_template_vm_xsd = TemplateVersionManager(
42
+ title="user template XSD",
43
+ user="1",
44
+ is_disabled=False,
45
+ )
46
+ self.user_template_vm_xsd.save_version_manager()
47
+
48
+ self.user_xsd_template = Template(
49
+ content=(
50
+ '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">'
51
+ '<xs:element name="tag"></xs:element></xs:schema>'
52
+ ),
53
+ hash="",
54
+ format=Template.XSD,
55
+ filename="filename.xsd",
56
+ version_manager=self.user_template_vm_xsd,
57
+ )
58
+ self.user_xsd_template.save()
59
+
60
+ self.user_template_vm_json = TemplateVersionManager(
61
+ title="user template JSON",
62
+ user="1",
63
+ is_disabled=False,
64
+ )
65
+ self.user_template_vm_json.save_version_manager()
66
+
67
+ self.user_json_template = Template(
68
+ content="{}",
69
+ hash="",
70
+ format=Template.JSON,
71
+ filename="filename.json",
72
+ version_manager=self.user_template_vm_json,
73
+ )
74
+ self.user_json_template.save()
75
+
76
+ self.global_template_vm_xsd = TemplateVersionManager(
77
+ title="global template XSD",
78
+ user=None,
79
+ is_disabled=False,
80
+ )
81
+ self.global_template_vm_xsd.save_version_manager()
82
+
83
+ self.global_xsd_template = Template(
84
+ content=(
85
+ '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">'
86
+ '<xs:element name="tag"></xs:element></xs:schema>'
87
+ ),
88
+ hash="",
89
+ format=Template.XSD,
90
+ filename="filename.xsd",
91
+ version_manager=self.global_template_vm_xsd,
92
+ )
93
+ self.global_xsd_template.save()
94
+
95
+ self.global_template_vm_json = TemplateVersionManager(
96
+ title="global template JSON",
97
+ user=None,
98
+ is_disabled=False,
99
+ )
100
+ self.global_template_vm_json.save_version_manager()
101
+
102
+ self.global_json_template = Template(
103
+ content="{}",
104
+ hash="",
105
+ format=Template.JSON,
106
+ filename="filename.json",
107
+ version_manager=self.global_template_vm_json,
108
+ )
109
+ self.global_json_template.save()
File without changes
@@ -0,0 +1,65 @@
1
+ """ Test user views
2
+ """
3
+
4
+ from tests.components.data.fixtures.fixtures import (
5
+ DataFixtures,
6
+ )
7
+
8
+ from core_explore_example_app.views.user.views import IndexView
9
+ from core_main_app.utils.integration_tests.integration_base_test_case import (
10
+ IntegrationBaseTestCase,
11
+ )
12
+ from core_main_app.utils.tests_tools.MockUser import create_mock_user
13
+ from core_main_app.utils.tests_tools.RequestMock import create_mock_request
14
+
15
+
16
+ class TestIndexView(IntegrationBaseTestCase):
17
+ """TestIndexView"""
18
+
19
+ def setUp(self):
20
+ """setUp
21
+
22
+ Returns:
23
+
24
+ """
25
+ self.fixture = DataFixtures()
26
+ self.fixture.insert_data()
27
+ self.user1 = create_mock_user(user_id="1")
28
+
29
+ def test_get_global_active_list_returns_xsd_templates(
30
+ self,
31
+ ):
32
+ """test_get_global_active_list_returns_xsd_templates
33
+
34
+ Returns:
35
+
36
+ """
37
+ # Arrange
38
+ mock_request = create_mock_request(user=self.user1)
39
+
40
+ # Act
41
+ index_view = IndexView()
42
+ templates = index_view.get_global_active_list(mock_request)
43
+
44
+ # Assert
45
+ self.assertEqual(templates.count(), 1)
46
+ self.assertEqual(templates[0], self.fixture.global_template_vm_xsd)
47
+
48
+ def test_get_user_active_list_returns_xsd_templates(
49
+ self,
50
+ ):
51
+ """test_get_user_active_list_returns_xsd_templates
52
+
53
+ Returns:
54
+
55
+ """
56
+ # Arrange
57
+ mock_request = create_mock_request(user=self.user1)
58
+
59
+ # Act
60
+ index_view = IndexView()
61
+ templates = index_view.get_user_active_list(mock_request)
62
+
63
+ # Assert
64
+ self.assertEqual(templates.count(), 1)
65
+ self.assertEqual(templates[0], self.fixture.user_template_vm_xsd)
@@ -1,8 +0,0 @@
1
- celery
2
- Django
3
- djangorestframework
4
- django-simple-menu
5
- core-main-app==2.4.*
6
- core-explore-common-app==2.4.*
7
- core-parser-app==2.4.*
8
- xml-utils==1.21.*
@@ -1,4 +0,0 @@
1
- core-main-app==2.4.*
2
- core-explore-common-app==2.4.*
3
- core-parser-app==2.4.*
4
- xml-utils==1.21.*