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