web/views/basecomponents.py
changeset 4085 002ba2a3bb13
parent 4047 2989a7d50b28
child 4230 6514a76eaa5c
--- a/web/views/basecomponents.py	Wed Dec 09 16:05:01 2009 +0100
+++ b/web/views/basecomponents.py	Wed Dec 09 16:06:27 2009 +0100
@@ -224,8 +224,8 @@
     def cell_call(self, row, col, view):
         entity = self.cw_rset.get_entity(row, col)
         url = entity.absolute_url(vid=view.id, __template='pdf-main-template')
-        iconurl = self.req.build_url('data/pdf_icon.gif')
-        label = self.req._('Download page as pdf')
+        iconurl = self._cw.build_url('data/pdf_icon.gif')
+        label = self._cw._('Download page as pdf')
         self.w(u'<a href="%s" title="%s" class="toolbarButton"><img src="%s" alt="%s"/></a>' %
                (xml_escape(url), label, iconurl, label))