# HG changeset patch # User Sylvain Thénault # Date 1250154406 -7200 # Node ID e1f3b8e7f19acb6b3e38d6e199452feb0fb0efac # Parent 550dae61eb88109f6a05c0dbed6807e4651e5d2d fix bw compat properties diff -r 550dae61eb88 -r e1f3b8e7f19a appobject.py --- a/appobject.py Thu Aug 13 11:06:07 2009 +0200 +++ b/appobject.py Thu Aug 13 11:06:46 2009 +0200 @@ -342,15 +342,20 @@ selector = (selector,) return selector - @classmethod - @deprecated('[3.5] use vreg.schema') - def schema(cls): - return cls.vreg.schema + @property + @deprecated('[3.5] use req.vreg') + def vreg(self): + return self.req.vreg - @classmethod - @deprecated('[3.5] use vreg.config') - def schema(cls): - return cls.vreg.config + @property + @deprecated('[3.5] use req.vreg.schema') + def schema(self): + return self.req.vreg.schema + + @property + @deprecated('[3.5] use req.vreg.config') + def config(self): + return self.req.vreg.config @deprecated('[3.5] use req.varmaker') def initialize_varmaker(self):