server/test/data/migration/postcreate.py
changeset 1977 606923dff11b
parent 0 b97547f5f1fa
child 3363 d3736311d0c4
equal deleted inserted replaced
1976:851e08142873 1977:606923dff11b
     1 """cubicweb post creation script, set note's workflow"""
     1 """cubicweb post creation script, set note'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 todoeid = add_state(u'todo', 'Note', initial=True)
     9 todoeid = add_state(u'todo', 'Note', initial=True)
     4 doneeid = add_state(u'done', 'Note')
    10 doneeid = add_state(u'done', 'Note')
     5 add_transition(u'redoit', 'Note', (doneeid,), todoeid)
    11 add_transition(u'redoit', 'Note', (doneeid,), todoeid)
     6 add_transition(u'markasdone', 'Note', (todoeid,), doneeid)
    12 add_transition(u'markasdone', 'Note', (todoeid,), doneeid)