equal
deleted
inserted
replaced
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): |