Added "archived_states" set to workflow
authorThierry Florac <thierry.florac@onf.fr>
Wed, 13 Sep 2017 09:34:56 +0200
changeset 153 6149158c48c5
parent 152 363efe154011
child 154 b07b899e9c1f
Added "archived_states" set to workflow
src/pyams_content/workflow/__init__.py
--- a/src/pyams_content/workflow/__init__.py	Wed Sep 13 09:23:25 2017 +0200
+++ b/src/pyams_content/workflow/__init__.py	Wed Sep 13 09:34:56 2017 +0200
@@ -108,6 +108,8 @@
 
 RETIRED_STATES = (RETIRED, ARCHIVING)
 
+ARCHIVED_STATES = (ARCHIVED, )
+
 
 #
 # Workflow conditions
@@ -643,6 +645,7 @@
                      published_states=VISIBLE_STATES,
                      waiting_states=WAITING_STATES,
                      retired_states=RETIRED_STATES,
+                     archived_states=ARCHIVED_STATES,
                      auto_retired_state=RETIRED)