[Zope3-dev] SimpleTerm from MessageID

Gary Poster gary at zope.com
Thu Mar 17 10:32:04 EST 2005


It would be better if the term was instantiated with a title set.  Is 
that easy to do instead?  I don't know what "ActiveStatus" is, in 
context.

Gary


On Mar 17, 2005, at 9:59 AM, Dmitry Vasiliev wrote:

> Hello all!
>
> I want to make registration status widget fully translatable.
> Although InactiveStatus and ActiveStatus is both MesssageID instances, 
> translation is not performed, since the term.title value always equal 
> None. So I want to make special case for SimpleTerm values:
>
> if title is None and isinstance(value, MessageID):
>     title = value
>
> Is this reasonable change? If so then I check it in with tests.
>
> -- 
> Dmitry Vasiliev (dima at hlabs.spb.ru)
>     http://hlabs.spb.ru
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev at zope.org
> Unsub: http://mail.zope.org/mailman/options/zope3-dev/gary%40zope.com
>



More information about the Zope3-dev mailing list