cubicweb/entities/wfobjs.py
branch3.24
changeset 11810 2e03bb4372b2
parent 11767 432f87a63057
child 12506 d97f9b8df92a
equal deleted inserted replaced
11809:11365e5c11d7 11810:2e03bb4372b2
   233                     print('may_be_fired: %r may fire: user is owner' % self.name)
   233                     print('may_be_fired: %r may fire: user is owner' % self.name)
   234                 return True
   234                 return True
   235         # check one of the rql expression conditions matches if any
   235         # check one of the rql expression conditions matches if any
   236         if self.condition:
   236         if self.condition:
   237             if DBG:
   237             if DBG:
   238                 print('my_be_fired: %r: %s' %
   238                 print('may_be_fired: %r: %s' %
   239                       (self.name, [(rqlexpr.expression,
   239                       (self.name, [(rqlexpr.expression,
   240                                     rqlexpr.check_expression(self._cw, eid))
   240                                     rqlexpr.check_expression(self._cw, eid))
   241                                     for rqlexpr in self.condition]))
   241                                     for rqlexpr in self.condition]))
   242             for rqlexpr in self.condition:
   242             for rqlexpr in self.condition:
   243                 if rqlexpr.check_expression(self._cw, eid):
   243                 if rqlexpr.check_expression(self._cw, eid):