Utility can't find REQUEST

sirgarr georgeleejr at gmail.com
Thu Aug 30 15:17:58 UTC 2007



Hanno Schlichting-2 wrote:
> 
> Utilities are also wrapped so the Zope2 security machinery still works,
> but their Acquisition chain does not contain the REQUEST.
> 
> Whenever you need the request in your code you probably want to write a
> browser view which has access to both the context and the request. A
> method that does some kind of work on the request but is completely
> independent from the context could be both written as a simple method
> (made importable TTW) or an utility. Both of these would need to take
> the request as an argument to their function calls.
> 

Thanks. Is there a reason toLocalizedTime needs a REQUEST?
-- 
View this message in context: http://www.nabble.com/Utility-can%27t-find-REQUEST-tf4351968s20094.html#a12409423
Sent from the Product Developers mailing list archive at Nabble.com.





More information about the Product-Developers mailing list