server/hookhelper.py
branchstable
changeset 4719 aaed3f813ef8
parent 4252 6c4f109c2b03
child 4840 c02a340cd1da
equal deleted inserted replaced
4718:3dc3ad02d091 4719:aaed3f813ef8
     7 """
     7 """
     8 __docformat__ = "restructuredtext en"
     8 __docformat__ = "restructuredtext en"
     9 
     9 
    10 from logilab.common.deprecation import deprecated, class_moved
    10 from logilab.common.deprecation import deprecated, class_moved
    11 
    11 
    12 from cubicweb import RepositoryError
       
    13 from cubicweb.server import hook
    12 from cubicweb.server import hook
    14 
    13 
    15 @deprecated('[3.6] entity_oldnewvalue should be imported from cw.server.hook')
    14 @deprecated('[3.6] entity_oldnewvalue should be imported from cw.server.hook')
    16 def entity_oldnewvalue(entity, attr):
    15 def entity_oldnewvalue(entity, attr):
    17     """return the "name" attribute of the entity with the given eid"""
    16     """return the "name" attribute of the entity with the given eid"""