[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - widget.py:1.64.12.1

Sidnei da Silva sidnei at x3ng.com.br
Sat Feb 28 16:39:56 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv13890/zope/app/browser/form

Modified Files:
      Tag: runyaga-sip-branch
	widget.py 
Log Message:
Should use self.description, which gets translated, instead of self.context.description


=== Zope3/src/zope/app/browser/form/widget.py 1.64 => 1.64.12.1 ===
--- Zope3/src/zope/app/browser/form/widget.py:1.64	Wed Feb  4 14:17:29 2004
+++ Zope3/src/zope/app/browser/form/widget.py	Sat Feb 28 16:39:55 2004
@@ -315,8 +315,8 @@
     def label(self):
         kw = {"for": self.name,
               "contents": cgi.escape(self.title)}
-        if self.context.description:
-            kw["title"] = self.context.description
+        if self.description:
+            kw["title"] = self.description
         return renderElement("label", **kw)
 
     def error(self):




More information about the Zope3-Checkins mailing list