server/test/data/migration/postcreate.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 19 May 2009 13:08:51 +0200
branchstable
changeset 1862 94dc8ccd320b
parent 0 b97547f5f1fa
child 1977 606923dff11b
permissions -rw-r--r--
#343322: should generate IS NULL in sql w/ None values in substitution

"""cubicweb post creation script, set note's workflow"""

todoeid = add_state(u'todo', 'Note', initial=True)
doneeid = add_state(u'done', 'Note')
add_transition(u'redoit', 'Note', (doneeid,), todoeid)
add_transition(u'markasdone', 'Note', (todoeid,), doneeid)
checkpoint()

pitetre = add_state(u'pitetre', 'Affaire', initial=True)
encours = add_state(u'en cours', 'Affaire')
finie = add_state(u'finie', 'Affaire')
bennon = add_state(u'ben non', 'Affaire')
add_transition(u'abort', 'Affaire', (pitetre,), bennon)
add_transition(u'start', 'Affaire', (pitetre,), encours)
add_transition(u'end', 'Affaire', (encours,), finie)
checkpoint()