[Zope3-dev] mini-RFC: times and timezones

Gary Poster gary at zope.com
Sun Feb 27 06:46:05 EST 2005


On Feb 27, 2005, at 6:39 AM, Stephan Richter wrote:

> On Sunday 27 February 2005 06:19, Gary Poster wrote:
>> I wish the request were easily available so we could adapt it to
>> ITZInfo in the format:fullDateTime code (or even the zope:modified
>> code).  The only solution I like enough is to iterate over the
>> participants of the current interaction to find an IRequest, and 
>> assume
>> that's the right one.  That's not ideal, but it would work, and even 
>> be
>> right for all of the cases I know about.
>
> You still have not read the chapter, right? :-) Look at the 
> setEngine() method
> to see how you can access the request easily.

LOL.  I guess this proves that skimming doesn't count, so no. :-)  Of 
course, you need it too for the locale; I forgot.  Very cool.  Thanks.

Gary


More information about the Zope3-dev mailing list