entities/wfobjs.py
branchtls-sprint
changeset 1154 9b23a6836c32
parent 0 b97547f5f1fa
child 1572 469787f6ea2b
--- a/entities/wfobjs.py	Thu Mar 26 20:54:40 2009 +0100
+++ b/entities/wfobjs.py	Thu Mar 26 21:03:20 2009 +0100
@@ -1,14 +1,14 @@
 """workflow definition and history related entities
 
 :organization: Logilab
-:copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 """
 __docformat__ = "restructuredtext en"
 
 from cubicweb.entities import AnyEntity, fetch_config
 
-
+ 
 class Transition(AnyEntity):
     """customized class for Transition entities
 
@@ -17,9 +17,6 @@
     """
     id = 'Transition'
     fetch_attrs, fetch_order = fetch_config(['name'])
-    __rtags__ = {('destination_state',  '*', 'subject'):  'create',
-                 ('allowed_transition', '*', 'object') :  'create',
-                  }
                  
     def may_be_passed(self, eid, stateeid):
         """return true if the logged user may pass this transition
@@ -66,11 +63,7 @@
     id = 'State'
     fetch_attrs, fetch_order = fetch_config(['name'])
     rest_attr = 'eid'
-    
-    __rtags__ = {'destination_state' : 'create',
-                 'allowed_transition' : 'create'
-                 }
-    
+        
     def transitions(self, entity, desteid=None):
         rql = ('Any T,N,DS where S allowed_transition T, S eid %(x)s, '
                'T name N, T destination_state DS, '