Another change was Re: [Zope3-dev] Re: small proposed widget change

Gary Poster gary at zope.com
Fri Sep 26 12:51:33 EDT 2003



Gary Poster wrote:
> Garrett Smith wrote:

>> Here are some items that I think should be handled by the skin, not 
>> hard coded by the widgets:
>>
>> - field label
> 
> 
> Well, the label is just the translated title.  The title is already 
> available from the widget (line 158 in the same file above).  Maybe the 
> widget title should be a method (or, for backwards compatibility, a 
> property) that returns the translated title: this would be sufficient 
> for this use case, and code would still be able to get 
> widget.context.title if the untranslated version needed.

Anyone object to making widget title a property that returns the 
translated title, if a context is available, and the untranslated field 
title otherwise?

Gary




More information about the Zope3-dev mailing list