[deprecation] better deprecation handling on self.varmaker
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 23 Sep 2009 19:41:19 +0200
changeset 3453 e2572c9ca3ec
parent 3452 7c008d31ef1f
child 3454 ad1cddc06997
[deprecation] better deprecation handling on self.varmaker
appobject.py
--- a/appobject.py	Wed Sep 23 19:40:47 2009 +0200
+++ b/appobject.py	Wed Sep 23 19:41:19 2009 +0200
@@ -356,9 +356,10 @@
     def view(self, *args, **kwargs):
         return self._cw.view(*args, **kwargs)
 
+    @property
     @deprecated('[3.6] use self._cw.varmaker')
-    def initialize_varmaker(self):
-        self.varmaker = self._cw.varmaker
+    def varmaker(self):
+        return self._cw.varmaker
 
     @deprecated('[3.6] use self._cw.get_cache')
     def get_cache(self, cachename):