no self._cw on widget objects while '_' is defined locally
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 20 Jan 2010 14:39:10 +0100
changeset 4294 235fe518b2e4
parent 4293 0c4bdb3d93fd
child 4295 b9590e68c543
no self._cw on widget objects while '_' is defined locally
web/views/editviews.py
--- a/web/views/editviews.py	Wed Jan 20 14:38:45 2010 +0100
+++ b/web/views/editviews.py	Wed Jan 20 14:39:10 2010 +0100
@@ -164,7 +164,7 @@
                 if not form.force_display and form.maxrelitems < len(related):
                     link = (u'<span class="invisible">'
                             '[<a href="javascript: window.location.href+=\'&amp;__force_display=1\'">%s</a>]'
-                            '</span>' % self._cw._('view all'))
+                            '</span>' % _('view all'))
                     w(u'<li class="invisible">%s</li>' % link)
                 w(u'</ul>')
                 w(u'</td>')