# HG changeset patch # User Sylvain Thénault # Date 1305727511 -7200 # Node ID 7824d61f41a2c29c8dadc2e82268561f0d957ad3 # Parent be2fffc9ec17c5090a23d90aeee0ae1a98d6824a fix some deprecation warnings diff -r be2fffc9ec17 -r 7824d61f41a2 web/views/basecontrollers.py --- a/web/views/basecontrollers.py Mon May 16 21:41:50 2011 +0200 +++ b/web/views/basecontrollers.py Wed May 18 16:05:11 2011 +0200 @@ -603,8 +603,8 @@ errors = self._cw.cnx.undo_transaction(txuuid) if not errors: self.redirect() - return self._cw._('some errors occurred:') + self.view('pyvalist', - pyvalue=errors) + return self._cw._('some errors occurred:') + self._cw.view( + 'pyvalist', pyvalue=errors) def redirect(self): req = self._cw diff -r be2fffc9ec17 -r 7824d61f41a2 web/views/plots.py --- a/web/views/plots.py Mon May 16 21:41:50 2011 +0200 +++ b/web/views/plots.py Wed May 18 16:05:11 2011 +0200 @@ -198,7 +198,7 @@ for rowidx, (_, value) in enumerate(self.cw_rset): if value is not None: vid = self._guess_vid(rowidx) - label = '%s: %s' % (self.view(vid, self.cw_rset, row=rowidx, col=0), + label = '%s: %s' % (self._cw.view(vid, self.cw_rset, row=rowidx, col=0), value) labels.append(label.encode(self._cw.encoding)) values.append(value) diff -r be2fffc9ec17 -r 7824d61f41a2 web/views/sparql.py --- a/web/views/sparql.py Mon May 16 21:41:50 2011 +0200 +++ b/web/views/sparql.py Wed May 18 16:05:11 2011 +0200 @@ -123,7 +123,7 @@ def cell_binding(self, row, col, varname): celltype = self.cw_rset.description[row][col] if self._cw.vreg.schema.eschema(celltype).final: - cellcontent = self.view('cell', self.cw_rset, row=row, col=col) + cellcontent = self._cw.view('cell', self.cw_rset, row=row, col=col) return E.binding(E.literal(cellcontent, datatype=xmlschema(celltype)), name=varname)