schemas/workflow.py
changeset 3536 f6c9a5df80fb
parent 3503 06bced8edddf
parent 3529 87b5086fd6a7
child 3629 559cad62c786
--- a/schemas/workflow.py	Tue Sep 29 15:58:44 2009 +0200
+++ b/schemas/workflow.py	Wed Sep 30 18:57:42 2009 +0200
@@ -68,6 +68,7 @@
 
     name = String(required=True, indexed=True, internationalizable=True,
                   maxsize=256)
+    type = String(vocabulary=(_('normal'), _('auto')), default='normal')
     description = RichString(fulltextindexed=True,
                          description=_('semantic description of this transition'))
     condition = SubjectRelation('RQLExpression', cardinality='*?', composite='subject',
@@ -116,15 +117,13 @@
                                         description=_('destination state'))
 
 
-# XXX should we allow managers to delete TrInfo?
-
 class TrInfo(EntityType):
     """workflow history item"""
     # 'add' security actually done by hooks
     permissions = {
         'read':   ('managers', 'users', 'guests',), # XXX U has_read_permission O ?
         'add':    ('managers', 'users', 'guests',),
-        'delete': (),
+        'delete': (), # XXX should we allow managers to delete TrInfo?
         'update': ('managers', 'owners',),
     }