djangocms-moderation 2.2.2__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 (149) hide show
  1. djangocms_moderation-2.2.2/LICENSE.txt +24 -0
  2. djangocms_moderation-2.2.2/MANIFEST.in +5 -0
  3. djangocms_moderation-2.2.2/PKG-INFO +148 -0
  4. djangocms_moderation-2.2.2/README.rst +108 -0
  5. djangocms_moderation-2.2.2/djangocms_moderation/__init__.py +1 -0
  6. djangocms_moderation-2.2.2/djangocms_moderation/admin.py +1232 -0
  7. djangocms_moderation-2.2.2/djangocms_moderation/admin_actions.py +179 -0
  8. djangocms_moderation-2.2.2/djangocms_moderation/apps.py +12 -0
  9. djangocms_moderation-2.2.2/djangocms_moderation/backends.py +23 -0
  10. djangocms_moderation-2.2.2/djangocms_moderation/cms_config.py +54 -0
  11. djangocms_moderation-2.2.2/djangocms_moderation/cms_toolbars.py +117 -0
  12. djangocms_moderation-2.2.2/djangocms_moderation/compact.py +9 -0
  13. djangocms_moderation-2.2.2/djangocms_moderation/conf.py +64 -0
  14. djangocms_moderation-2.2.2/djangocms_moderation/constants.py +55 -0
  15. djangocms_moderation-2.2.2/djangocms_moderation/emails.py +90 -0
  16. djangocms_moderation-2.2.2/djangocms_moderation/exceptions.py +6 -0
  17. djangocms_moderation-2.2.2/djangocms_moderation/filters.py +86 -0
  18. djangocms_moderation-2.2.2/djangocms_moderation/forms.py +268 -0
  19. djangocms_moderation-2.2.2/djangocms_moderation/handlers.py +28 -0
  20. djangocms_moderation-2.2.2/djangocms_moderation/helpers.py +206 -0
  21. djangocms_moderation-2.2.2/djangocms_moderation/management/__init__.py +0 -0
  22. djangocms_moderation-2.2.2/djangocms_moderation/management/commands/__init__.py +0 -0
  23. djangocms_moderation-2.2.2/djangocms_moderation/management/commands/moderation_fix_states.py +51 -0
  24. djangocms_moderation-2.2.2/djangocms_moderation/managers.py +88 -0
  25. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0001_initial.py +467 -0
  26. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0001_squashed_0017_auto_20220831_0727.py +663 -0
  27. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0002_auto_20180905_1152.py +88 -0
  28. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0003_auto_20180903_1206.py +29 -0
  29. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0004_auto_20180907_1206.py +27 -0
  30. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0005_auto_20180919_1348.py +29 -0
  31. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0006_auto_20181001_1840.py +34 -0
  32. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0007_auto_20181002_1725.py +16 -0
  33. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0008_auto_20181002_1833.py +22 -0
  34. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0009_auto_20181005_1534.py +35 -0
  35. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0010_auto_20181008_1317.py +38 -0
  36. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0011_auto_20181008_1328.py +39 -0
  37. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0012_auto_20181016_1319.py +23 -0
  38. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0013_auto_20181122_1110.py +30 -0
  39. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0014_auto_20190313_1638.py +17 -0
  40. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0014_auto_20190315_1723.py +21 -0
  41. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0016_moderationrequesttreenode.py +30 -0
  42. djangocms_moderation-2.2.2/djangocms_moderation/migrations/0017_auto_20220831_0727.py +19 -0
  43. djangocms_moderation-2.2.2/djangocms_moderation/migrations/__init__.py +0 -0
  44. djangocms_moderation-2.2.2/djangocms_moderation/models.py +769 -0
  45. djangocms_moderation-2.2.2/djangocms_moderation/monkeypatch.py +170 -0
  46. djangocms_moderation-2.2.2/djangocms_moderation/signals.py +8 -0
  47. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/css/actions.css +41 -0
  48. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/css/burger.css +177 -0
  49. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/css/comments_changelist.css +16 -0
  50. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/css/moderation.css +119 -0
  51. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/css/source.css +107 -0
  52. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/js/actions.js +14 -0
  53. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/js/base.js +208 -0
  54. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/js/burger.js +217 -0
  55. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/js/dist/bundle.moderation.min.js +1 -0
  56. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/js/dist/bundle.prettydiff.min.js +1 -0
  57. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/js/get-dist-path.js +37 -0
  58. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/js/libs/api/dom.js +148 -0
  59. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/js/libs/difflib.js +436 -0
  60. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/js/libs/diffview.js +332 -0
  61. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/js/libs/htmldiff.js +978 -0
  62. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/js/libs/tidy.js +6537 -0
  63. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/js/prettydiff.js +73 -0
  64. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/svg/icon-comment.svg +20 -0
  65. djangocms_moderation-2.2.2/djangocms_moderation/static/djangocms_moderation/svg/menu.svg +2 -0
  66. djangocms_moderation-2.2.2/djangocms_moderation/templates/admin/djangocms_moderation/collectioncomment/change_form.html +17 -0
  67. djangocms_moderation-2.2.2/djangocms_moderation/templates/admin/djangocms_moderation/collectioncomment/change_list.html +21 -0
  68. djangocms_moderation-2.2.2/djangocms_moderation/templates/admin/djangocms_moderation/moderationcollection/change_list.html +11 -0
  69. djangocms_moderation-2.2.2/djangocms_moderation/templates/admin/djangocms_moderation/moderationrequest/approve_confirmation.html +54 -0
  70. djangocms_moderation-2.2.2/djangocms_moderation/templates/admin/djangocms_moderation/moderationrequest/change_form.html +13 -0
  71. djangocms_moderation-2.2.2/djangocms_moderation/templates/admin/djangocms_moderation/moderationrequest/delete_confirmation.html +55 -0
  72. djangocms_moderation-2.2.2/djangocms_moderation/templates/admin/djangocms_moderation/moderationrequest/publish_confirmation.html +54 -0
  73. djangocms_moderation-2.2.2/djangocms_moderation/templates/admin/djangocms_moderation/moderationrequest/resubmit_confirmation.html +54 -0
  74. djangocms_moderation-2.2.2/djangocms_moderation/templates/admin/djangocms_moderation/moderationrequest/rework_confirmation.html +54 -0
  75. djangocms_moderation-2.2.2/djangocms_moderation/templates/admin/djangocms_moderation/requestcomment/change_form.html +17 -0
  76. djangocms_moderation-2.2.2/djangocms_moderation/templates/admin/djangocms_moderation/requestcomment/change_list.html +13 -0
  77. djangocms_moderation-2.2.2/djangocms_moderation/templates/admin/djangocms_moderation/treebeard/tree_change_list.html +13 -0
  78. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/base_confirmation.html +27 -0
  79. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/base_confirmation_build.html +23 -0
  80. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/cancel_collection.html +23 -0
  81. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/comment_icon.html +2 -0
  82. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/comment_list.html +32 -0
  83. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/confirmation_page.html +12 -0
  84. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/edit_icon.html +2 -0
  85. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/emails/moderation-request/approved.txt +31 -0
  86. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/emails/moderation-request/cancelled.txt +31 -0
  87. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/emails/moderation-request/rejected.txt +34 -0
  88. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/emails/moderation-request/request.txt +31 -0
  89. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/items_to_collection.html +99 -0
  90. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/moderation_confirmation.html +2 -0
  91. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/moderation_request_change_list.html +51 -0
  92. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/request_finalized.html +6 -0
  93. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/request_form.html +40 -0
  94. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/request_icon.html +2 -0
  95. djangocms_moderation-2.2.2/djangocms_moderation/templates/djangocms_moderation/select_workflow_form.html +30 -0
  96. djangocms_moderation-2.2.2/djangocms_moderation/templatetags/__init__.py +0 -0
  97. djangocms_moderation-2.2.2/djangocms_moderation/templatetags/comments_extras.py +28 -0
  98. djangocms_moderation-2.2.2/djangocms_moderation/utils.py +48 -0
  99. djangocms_moderation-2.2.2/djangocms_moderation/views.py +259 -0
  100. djangocms_moderation-2.2.2/djangocms_moderation.egg-info/PKG-INFO +148 -0
  101. djangocms_moderation-2.2.2/djangocms_moderation.egg-info/SOURCES.txt +148 -0
  102. djangocms_moderation-2.2.2/djangocms_moderation.egg-info/dependency_links.txt +2 -0
  103. djangocms_moderation-2.2.2/djangocms_moderation.egg-info/requires.txt +4 -0
  104. djangocms_moderation-2.2.2/djangocms_moderation.egg-info/top_level.txt +2 -0
  105. djangocms_moderation-2.2.2/setup.cfg +56 -0
  106. djangocms_moderation-2.2.2/setup.py +51 -0
  107. djangocms_moderation-2.2.2/tests/__init__.py +0 -0
  108. djangocms_moderation-2.2.2/tests/settings.py +48 -0
  109. djangocms_moderation-2.2.2/tests/test_admin.py +450 -0
  110. djangocms_moderation-2.2.2/tests/test_admin_actions.py +1153 -0
  111. djangocms_moderation-2.2.2/tests/test_app_registration.py +111 -0
  112. djangocms_moderation-2.2.2/tests/test_cms_toolbars.py +394 -0
  113. djangocms_moderation-2.2.2/tests/test_forms.py +263 -0
  114. djangocms_moderation-2.2.2/tests/test_helpers.py +323 -0
  115. djangocms_moderation-2.2.2/tests/test_integration.py +33 -0
  116. djangocms_moderation-2.2.2/tests/test_management_commands.py +138 -0
  117. djangocms_moderation-2.2.2/tests/test_managers.py +14 -0
  118. djangocms_moderation-2.2.2/tests/test_models.py +780 -0
  119. djangocms_moderation-2.2.2/tests/test_moderation_flows.py +202 -0
  120. djangocms_moderation-2.2.2/tests/test_monkeypatch.py +202 -0
  121. djangocms_moderation-2.2.2/tests/test_signals.py +78 -0
  122. djangocms_moderation-2.2.2/tests/test_utils.py +94 -0
  123. djangocms_moderation-2.2.2/tests/test_views.py +1412 -0
  124. djangocms_moderation-2.2.2/tests/utils/__init__.py +0 -0
  125. djangocms_moderation-2.2.2/tests/utils/app_1/__init__.py +0 -0
  126. djangocms_moderation-2.2.2/tests/utils/app_1/apps.py +7 -0
  127. djangocms_moderation-2.2.2/tests/utils/app_1/cms_config.py +24 -0
  128. djangocms_moderation-2.2.2/tests/utils/app_1/models.py +27 -0
  129. djangocms_moderation-2.2.2/tests/utils/app_2/__init__.py +0 -0
  130. djangocms_moderation-2.2.2/tests/utils/app_2/apps.py +7 -0
  131. djangocms_moderation-2.2.2/tests/utils/app_2/cms_config.py +24 -0
  132. djangocms_moderation-2.2.2/tests/utils/app_2/models.py +23 -0
  133. djangocms_moderation-2.2.2/tests/utils/base.py +188 -0
  134. djangocms_moderation-2.2.2/tests/utils/factories.py +198 -0
  135. djangocms_moderation-2.2.2/tests/utils/moderated_polls/__init__.py +0 -0
  136. djangocms_moderation-2.2.2/tests/utils/moderated_polls/admin.py +18 -0
  137. djangocms_moderation-2.2.2/tests/utils/moderated_polls/apps.py +7 -0
  138. djangocms_moderation-2.2.2/tests/utils/moderated_polls/cms_config.py +36 -0
  139. djangocms_moderation-2.2.2/tests/utils/moderated_polls/cms_plugins.py +41 -0
  140. djangocms_moderation-2.2.2/tests/utils/moderated_polls/factories.py +76 -0
  141. djangocms_moderation-2.2.2/tests/utils/moderated_polls/models.py +119 -0
  142. djangocms_moderation-2.2.2/tests/utils/moderated_polls/templatetags/__init__.py +0 -0
  143. djangocms_moderation-2.2.2/tests/utils/moderated_polls/templatetags/polls_tags.py +10 -0
  144. djangocms_moderation-2.2.2/tests/utils/versioned_none_moderated_app/__init__.py +0 -0
  145. djangocms_moderation-2.2.2/tests/utils/versioned_none_moderated_app/admin.py +13 -0
  146. djangocms_moderation-2.2.2/tests/utils/versioned_none_moderated_app/apps.py +7 -0
  147. djangocms_moderation-2.2.2/tests/utils/versioned_none_moderated_app/cms_config.py +20 -0
  148. djangocms_moderation-2.2.2/tests/utils/versioned_none_moderated_app/cms_plugins.py +11 -0
  149. djangocms_moderation-2.2.2/tests/utils/versioned_none_moderated_app/models.py +42 -0
@@ -0,0 +1,24 @@
1
+ Copyright (c) 2017, Divio AG
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+ * Redistributions of source code must retain the above copyright
7
+ notice, this list of conditions and the following disclaimer.
8
+ * Redistributions in binary form must reproduce the above copyright
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
+ * Neither the name of Divio AG nor the
12
+ names of its contributors may be used to endorse or promote products
13
+ derived from this software without specific prior written permission.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL DIVIO AG BE LIABLE FOR ANY
19
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,5 @@
1
+ include LICENSE.txt
2
+ include README.rst
3
+ recursive-include djangocms_moderation/templates *
4
+ recursive-include djangocms_moderation/static *
5
+ recursive-exclude * *.pyc
@@ -0,0 +1,148 @@
1
+ Metadata-Version: 2.2
2
+ Name: djangocms-moderation
3
+ Version: 2.2.2
4
+ Home-page: https://github.com/django-cms/djangocms-moderation
5
+ Author: Divio AG
6
+ Author-email: info@divio.ch
7
+ Maintainer: Django CMS Association and contributors
8
+ Maintainer-email: info@django-cms.org
9
+ License: BSD
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Programming Language :: Python
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Framework :: Django
16
+ Classifier: Framework :: Django :: 3.2
17
+ Classifier: Framework :: Django :: 4.2
18
+ Classifier: Framework :: Django :: 5.0
19
+ Classifier: Framework :: Django CMS
20
+ Classifier: Framework :: Django CMS :: 4.0
21
+ Classifier: Framework :: Django CMS :: 4.1
22
+ Classifier: Intended Audience :: Developers
23
+ Classifier: License :: OSI Approved :: BSD License
24
+ Classifier: Operating System :: OS Independent
25
+ Classifier: Topic :: Software Development
26
+ License-File: LICENSE.txt
27
+ Requires-Dist: Django>=3.2
28
+ Requires-Dist: django-cms
29
+ Requires-Dist: django-sekizai>=0.7
30
+ Requires-Dist: django-admin-sortable2>=0.6.4
31
+ Dynamic: author
32
+ Dynamic: author-email
33
+ Dynamic: classifier
34
+ Dynamic: description
35
+ Dynamic: home-page
36
+ Dynamic: license
37
+ Dynamic: maintainer
38
+ Dynamic: maintainer-email
39
+ Dynamic: requires-dist
40
+
41
+ *********************
42
+ django CMS Moderation
43
+ *********************
44
+
45
+ ============
46
+ Installation
47
+ ============
48
+
49
+ Requirements
50
+ ============
51
+
52
+ django CMS Moderation requires that you have a django CMS 4.0 (or higher) project already running and set up.
53
+
54
+ djangocms-versioning is also required along with django-fsm which should be installed with versioning.
55
+
56
+
57
+ To install
58
+ ==========
59
+
60
+ Run::
61
+
62
+ pip install git+git://github.com/django-cms/djangocms-moderation@master#egg=djangocms-moderation
63
+
64
+ Add the following to your project's ``INSTALLED_APPS``:
65
+
66
+ - ``'djangocms_moderation'``
67
+ - ``'adminsortable2'``
68
+
69
+ Run::
70
+
71
+ python manage.py migrate djangocms_moderation
72
+
73
+ to perform the application's database migrations.
74
+
75
+ Configuration
76
+ =============
77
+
78
+ The following settings can be added to your project's settings file to configure django CMS Moderation's behavior:
79
+
80
+ .. list-table::
81
+ :header-rows: 1
82
+ :widths: 50 50
83
+
84
+ * - Setting
85
+ - Description
86
+ * - ``CMS_MODERATION_DEFAULT_COMPLIANCE_NUMBER_BACKEND``
87
+ - Default backend class for generating compliance numbers.
88
+ Default is ``djangocms_moderation.backends.uuid4_backend``.
89
+ * - ``CMS_MODERATION_COMPLIANCE_NUMBER_BACKENDS``
90
+ - List of available compliance number backend classes.
91
+ By default, three backends are configured: ``uuid4_backend``,
92
+ ``sequential_number_backend``, and
93
+ ``sequential_number_with_identifier_prefix_backend``.
94
+ * - ``CMS_MODERATION_ENABLE_WORKFLOW_OVERRIDE``
95
+ - Enable/disable workflow override functionality. Defaults to ``False``.
96
+ * - ``CMS_MODERATION_DEFAULT_CONFIRMATION_PAGE_TEMPLATE``
97
+ - Default template for confirmation pages. Defaults to
98
+ ``djangocms_moderation/moderation_confirmation.html``
99
+ * - ``CMS_MODERATION_CONFIRMATION_PAGE_TEMPLATES``
100
+ - List of available confirmation page templates. Only includes the
101
+ default template by default.
102
+ * - ``CMS_MODERATION_COLLECTION_COMMENTS_ENABLED``
103
+ - Enable/disable comments on collections. Defaults to ``True``.
104
+ * - ``CMS_MODERATION_REQUEST_COMMENTS_ENABLED``
105
+ - Enable/disable comments on requests. Defaults to ``True``.
106
+ * - ``CMS_MODERATION_COLLECTION_NAME_LENGTH_LIMIT``
107
+ - Maximum length for collection names. Defaults to ``24``.
108
+ * - ``EMAIL_NOTIFICATIONS_FAIL_SILENTLY``
109
+ - Control email notification error handling. Defaults to ``False``.
110
+
111
+ Example Configuration
112
+ ---------------------
113
+
114
+ Add these settings to your project's settings file:
115
+
116
+ .. code-block:: python
117
+
118
+ # Custom compliance number backend
119
+ CMS_MODERATION_DEFAULT_COMPLIANCE_NUMBER_BACKEND = 'myapp.backends.CustomComplianceNumberBackend'
120
+
121
+ # Enable workflow override
122
+ CMS_MODERATION_ENABLE_WORKFLOW_OVERRIDE = True
123
+
124
+ # Custom confirmation template
125
+ CMS_MODERATION_DEFAULT_CONFIRMATION_PAGE_TEMPLATE = 'custom_confirmation.html'
126
+
127
+ # Enable comments
128
+ CMS_MODERATION_COLLECTION_COMMENTS_ENABLED = True
129
+ CMS_MODERATION_REQUEST_COMMENTS_ENABLED = True
130
+
131
+ # Set collection name length limit
132
+ CMS_MODERATION_COLLECTION_NAME_LENGTH_LIMIT = 100
133
+
134
+ # Control email notification errors
135
+ EMAIL_NOTIFICATIONS_FAIL_SILENTLY = False
136
+
137
+ =============
138
+ Documentation
139
+ =============
140
+
141
+ We maintain documentation under ``docs`` folder using rst format. HTML documentation can be generated using the following commands
142
+
143
+ Run::
144
+
145
+ cd docs/
146
+ make html
147
+
148
+ This should generate all html files from rst documents under the `docs/_build` folder, which can be browsed.
@@ -0,0 +1,108 @@
1
+ *********************
2
+ django CMS Moderation
3
+ *********************
4
+
5
+ ============
6
+ Installation
7
+ ============
8
+
9
+ Requirements
10
+ ============
11
+
12
+ django CMS Moderation requires that you have a django CMS 4.0 (or higher) project already running and set up.
13
+
14
+ djangocms-versioning is also required along with django-fsm which should be installed with versioning.
15
+
16
+
17
+ To install
18
+ ==========
19
+
20
+ Run::
21
+
22
+ pip install git+git://github.com/django-cms/djangocms-moderation@master#egg=djangocms-moderation
23
+
24
+ Add the following to your project's ``INSTALLED_APPS``:
25
+
26
+ - ``'djangocms_moderation'``
27
+ - ``'adminsortable2'``
28
+
29
+ Run::
30
+
31
+ python manage.py migrate djangocms_moderation
32
+
33
+ to perform the application's database migrations.
34
+
35
+ Configuration
36
+ =============
37
+
38
+ The following settings can be added to your project's settings file to configure django CMS Moderation's behavior:
39
+
40
+ .. list-table::
41
+ :header-rows: 1
42
+ :widths: 50 50
43
+
44
+ * - Setting
45
+ - Description
46
+ * - ``CMS_MODERATION_DEFAULT_COMPLIANCE_NUMBER_BACKEND``
47
+ - Default backend class for generating compliance numbers.
48
+ Default is ``djangocms_moderation.backends.uuid4_backend``.
49
+ * - ``CMS_MODERATION_COMPLIANCE_NUMBER_BACKENDS``
50
+ - List of available compliance number backend classes.
51
+ By default, three backends are configured: ``uuid4_backend``,
52
+ ``sequential_number_backend``, and
53
+ ``sequential_number_with_identifier_prefix_backend``.
54
+ * - ``CMS_MODERATION_ENABLE_WORKFLOW_OVERRIDE``
55
+ - Enable/disable workflow override functionality. Defaults to ``False``.
56
+ * - ``CMS_MODERATION_DEFAULT_CONFIRMATION_PAGE_TEMPLATE``
57
+ - Default template for confirmation pages. Defaults to
58
+ ``djangocms_moderation/moderation_confirmation.html``
59
+ * - ``CMS_MODERATION_CONFIRMATION_PAGE_TEMPLATES``
60
+ - List of available confirmation page templates. Only includes the
61
+ default template by default.
62
+ * - ``CMS_MODERATION_COLLECTION_COMMENTS_ENABLED``
63
+ - Enable/disable comments on collections. Defaults to ``True``.
64
+ * - ``CMS_MODERATION_REQUEST_COMMENTS_ENABLED``
65
+ - Enable/disable comments on requests. Defaults to ``True``.
66
+ * - ``CMS_MODERATION_COLLECTION_NAME_LENGTH_LIMIT``
67
+ - Maximum length for collection names. Defaults to ``24``.
68
+ * - ``EMAIL_NOTIFICATIONS_FAIL_SILENTLY``
69
+ - Control email notification error handling. Defaults to ``False``.
70
+
71
+ Example Configuration
72
+ ---------------------
73
+
74
+ Add these settings to your project's settings file:
75
+
76
+ .. code-block:: python
77
+
78
+ # Custom compliance number backend
79
+ CMS_MODERATION_DEFAULT_COMPLIANCE_NUMBER_BACKEND = 'myapp.backends.CustomComplianceNumberBackend'
80
+
81
+ # Enable workflow override
82
+ CMS_MODERATION_ENABLE_WORKFLOW_OVERRIDE = True
83
+
84
+ # Custom confirmation template
85
+ CMS_MODERATION_DEFAULT_CONFIRMATION_PAGE_TEMPLATE = 'custom_confirmation.html'
86
+
87
+ # Enable comments
88
+ CMS_MODERATION_COLLECTION_COMMENTS_ENABLED = True
89
+ CMS_MODERATION_REQUEST_COMMENTS_ENABLED = True
90
+
91
+ # Set collection name length limit
92
+ CMS_MODERATION_COLLECTION_NAME_LENGTH_LIMIT = 100
93
+
94
+ # Control email notification errors
95
+ EMAIL_NOTIFICATIONS_FAIL_SILENTLY = False
96
+
97
+ =============
98
+ Documentation
99
+ =============
100
+
101
+ We maintain documentation under ``docs`` folder using rst format. HTML documentation can be generated using the following commands
102
+
103
+ Run::
104
+
105
+ cd docs/
106
+ make html
107
+
108
+ This should generate all html files from rst documents under the `docs/_build` folder, which can be browsed.
@@ -0,0 +1 @@
1
+ __version__ = "2.2.2"