misc/migration/postcreate.py
changeset 1977 606923dff11b
parent 1398 5fe84a5f7035
child 2172 cf8f9180e63e
equal deleted inserted replaced
1976:851e08142873 1977:606923dff11b
     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,