[Zope3-dev] SimpleTerm from MessageID

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Apr 1 23:39:01 EST 2005


On Thursday 17 March 2005 09:59, Dmitry Vasiliev wrote:
> 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.

I think this is a bit extreme. Instead I have manually created a vocabulary in 
the schema. See revision 29832.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-dev mailing list