web/component.py
branchstable
changeset 6743 d2d7a5d9164d
parent 6580 798200432f50
child 6777 1d423b7aa6c9
equal deleted inserted replaced
6742:e03d427209cb 6743:d2d7a5d9164d
   232 
   232 
   233     # XXX support kwargs for compat with old boxes which gets the view as
   233     # XXX support kwargs for compat with old boxes which gets the view as
   234     # argument
   234     # argument
   235     def render(self, w, **kwargs):
   235     def render(self, w, **kwargs):
   236         if hasattr(self, 'call'):
   236         if hasattr(self, 'call'):
   237             warn('[3.10] should not anymore implements call on %s, see new CtxComponent api'
   237             warn('[3.10] should not anymore implement call on %s, see new CtxComponent api'
   238                  % self.__class__, DeprecationWarning)
   238                  % self.__class__, DeprecationWarning)
   239             self.w = w
   239             self.w = w
   240             def wview(__vid, rset=None, __fallback_vid=None, **kwargs):
   240             def wview(__vid, rset=None, __fallback_vid=None, **kwargs):
   241                 self._cw.view(__vid, rset, __fallback_vid, w=self.w, **kwargs)
   241                 self._cw.view(__vid, rset, __fallback_vid, w=self.w, **kwargs)
   242             self.wview = wview
   242             self.wview = wview