--- a/server/session.py Fri Jul 31 19:18:33 2009 +0200
+++ b/server/session.py Fri Jul 31 22:37:28 2009 +0200
@@ -11,7 +11,7 @@
import threading
from time import time
-from logilab.common.deprecation import obsolete
+from logilab.common.deprecation import deprecated
from rql.nodes import VariableRef, Function, ETYPE_PYOBJ_MAP, etype_from_pyobj
from yams import BASE_TYPES
@@ -454,7 +454,7 @@
description.append(tuple(row_descr))
return description
- @obsolete('use direct access to session.transaction_data')
+ @deprecated('use direct access to session.transaction_data')
def query_data(self, key, default=None, setdefault=False, pop=False):
if setdefault:
assert not pop
@@ -464,7 +464,7 @@
else:
return self.transaction_data.get(key, default)
- @obsolete('use entity_from_eid(eid, etype=None)')
+ @deprecated('use entity_from_eid(eid, etype=None)')
def entity(self, eid):
"""return a result set for the given eid"""
return self.eid_rset(eid).get_entity(0, 0)