sobjects/textparsers.py
branchstable
changeset 7815 2a164a9cf81c
parent 6911 75849076fd6c
child 8748 f5027f8d2478
equal deleted inserted replaced
7814:1ec9fe1dfba9 7815:2a164a9cf81c
     1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 #
     3 #
     4 # This file is part of CubicWeb.
     4 # This file is part of CubicWeb.
     5 #
     5 #
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
    81             if tr and tr.may_be_fired(entity.eid):
    81             if tr and tr.may_be_fired(entity.eid):
    82                 try:
    82                 try:
    83                     trinfo = iworkflowable.fire_transition(tr)
    83                     trinfo = iworkflowable.fire_transition(tr)
    84                     caller.fire_event('state-changed', {'trinfo': trinfo,
    84                     caller.fire_event('state-changed', {'trinfo': trinfo,
    85                                                         'entity': entity})
    85                                                         'entity': entity})
    86                 except:
    86                 except Exception:
    87                     self.exception('while changing state of %s', entity)
    87                     self.exception('while changing state of %s', entity)
    88             else:
    88             else:
    89                 self.error("can't pass transition %s on entity %s",
    89                 self.error("can't pass transition %s on entity %s",
    90                            trname, entity)
    90                            trname, entity)