From c824c0bdb574106b534663fb0177c819e1782251 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Mon, 16 Mar 2015 16:31:52 +0100 Subject: [PATCH] provide new 'contact' states definition to be used for persons or other kinds of parties --- organize/stateful/README.txt | 6 ++++ organize/stateful/browser.py | 5 +-- organize/stateful/configure.zcml | 14 ++++++++ organize/stateful/contact.py | 56 ++++++++++++++++++++++++++++++++ 4 files changed, 79 insertions(+), 2 deletions(-) create mode 100644 organize/stateful/contact.py diff --git a/organize/stateful/README.txt b/organize/stateful/README.txt index 11182e4..be98378 100644 --- a/organize/stateful/README.txt +++ b/organize/stateful/README.txt @@ -187,6 +187,12 @@ Task States >>> from loops.organize.stateful.task import taskStates, publishableTask +Contact States +=========== + + >>> from loops.organize.stateful.contact import contactStates + + Fin de partie ============= diff --git a/organize/stateful/browser.py b/organize/stateful/browser.py index 24604f7..6dd432f 100644 --- a/organize/stateful/browser.py +++ b/organize/stateful/browser.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2014 Helmut Merz helmutm@cy55.de +# Copyright (c) 2015 Helmut Merz helmutm@cy55.de # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -45,7 +45,8 @@ template = ViewPageTemplateFile('view_macros.pt') statefulActions = ('classification_quality', 'simple_publishing', 'task_states', - 'publishable_task',) + 'publishable_task', + 'contact_states',) def registerStatesPortlet(controller, view, statesDefs, diff --git a/organize/stateful/configure.zcml b/organize/stateful/configure.zcml index 30ad487..1c6ebae 100644 --- a/organize/stateful/configure.zcml +++ b/organize/stateful/configure.zcml @@ -77,6 +77,20 @@ set_schema="cybertools.stateful.interfaces.IStateful" /> + + + + + + + +