[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope3-dev
Subject:    Another change was Re: [Zope3-dev] Re: small proposed widget change
From:       Gary Poster <gary () zope ! com>
Date:       2003-09-26 16:51:33
[Download RAW message or body]



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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic