req.py
changeset 3659 993997b4b41d
parent 3655 af86ab65a282
child 3674 387d51af966d
--- a/req.py	Tue Oct 13 16:00:09 2009 +0200
+++ b/req.py	Tue Oct 13 18:20:05 2009 +0200
@@ -11,6 +11,7 @@
 from datetime import time, datetime, timedelta
 
 from logilab.common.decorators import cached
+from logilab.common.deprecation import deprecated
 
 from cubicweb import Unauthorized, RegistryException, typed_eid
 from cubicweb.rset import ResultSet
@@ -332,3 +333,13 @@
     def describe(self, eid):
         """return a tuple (type, sourceuri, extid) for the entity with id <eid>"""
         raise NotImplementedError
+
+    @property
+    @deprecated('[3.6] use _cw.vreg.config')
+    def config(self):
+        return self.vreg.config
+
+    @property
+    @deprecated('[3.6] use _cw.vreg.schema')
+    def schema(self):
+        return self.vreg.schema