author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Tue, 09 Jun 2009 11:31:57 +0200 | |
branch | stable |
changeset 2066 | 2c4bf4ee88a2 |
parent 1977 | 606923dff11b |
child 3363 | d3736311d0c4 |
permissions | -rw-r--r-- |
1977
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
1 |
"""cubicweb post creation script, set note's workflow |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
2 |
|
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
3 |
:organization: Logilab |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
4 |
:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
5 |
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
6 |
:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
7 |
""" |
0 | 8 |
|
9 |
todoeid = add_state(u'todo', 'Note', initial=True) |
|
10 |
doneeid = add_state(u'done', 'Note') |
|
11 |
add_transition(u'redoit', 'Note', (doneeid,), todoeid) |
|
12 |
add_transition(u'markasdone', 'Note', (todoeid,), doneeid) |
|
13 |
checkpoint() |
|
14 |
||
15 |
pitetre = add_state(u'pitetre', 'Affaire', initial=True) |
|
16 |
encours = add_state(u'en cours', 'Affaire') |
|
17 |
finie = add_state(u'finie', 'Affaire') |
|
18 |
bennon = add_state(u'ben non', 'Affaire') |
|
19 |
add_transition(u'abort', 'Affaire', (pitetre,), bennon) |
|
20 |
add_transition(u'start', 'Affaire', (pitetre,), encours) |
|
21 |
add_transition(u'end', 'Affaire', (encours,), finie) |
|
22 |
checkpoint() |
|
23 |