[Zope3-Users] New Request Variable?

2006-05-19 Thread Jim Washington
I have an expensive function (the result is a long list of IntIds) that I only want to call once in a request. It only gets calculated the first time it is called, and the results may be used anytime after that. But only for the current request. A subsequent request has to recalculate from

Re: [Zope3-Users] New Request Variable?

2006-05-19 Thread Fred Drake
On 5/19/06, Jim Washington [EMAIL PROTECTED] wrote: Request is also the wrong place. It's slotted; I cannot add variables. Isn't this what the request annotations are for? -Fred -- Fred L. Drake, Jr.fdrake at gmail.com Education is hanging around until you've caught on. -- Robert

Re: [Zope3-Users] New Request Variable?

2006-05-19 Thread Jim Washington
Fred Drake wrote: On 5/19/06, Jim Washington [EMAIL PROTECTED] wrote: Request is also the wrong place. It's slotted; I cannot add variables. Isn't this what the request annotations are for? -Fred Thanks, Fred. That is, of course, the correct (and quite elegant) solution. -Jim