equal
deleted
inserted
replaced
1 """cubicweb post creation script, set user's workflow""" |
1 """cubicweb post creation script, set user's workflow |
|
2 |
|
3 :organization: Logilab |
|
4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
|
5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
|
6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
|
7 """ |
2 |
8 |
3 activatedeid = add_state(_('activated'), 'CWUser', initial=True) |
9 activatedeid = add_state(_('activated'), 'CWUser', initial=True) |
4 deactivatedeid = add_state(_('deactivated'), 'CWUser') |
10 deactivatedeid = add_state(_('deactivated'), 'CWUser') |
5 add_transition(_('deactivate'), 'CWUser', |
11 add_transition(_('deactivate'), 'CWUser', |
6 (activatedeid,), deactivatedeid, |
12 (activatedeid,), deactivatedeid, |