On 9/14/07, Ben Bangert <[EMAIL PROTECTED]> wrote:
> On Sep 14, 2007, at 4:04 PM, Mike Orr wrote:
>
> > Is it OK to put arbitrary attributes on the request object?  That's
> > what Quixote would do, and they nicely disappear when the request is
> > over.
>
> Generally, I'd say no... as the request should map to the request.
> The 'c' object is around during one request, and is global. While its
> intended for passing objects to the template context, I see no harm
> in having other attributes on it. Plus, its quite possible you might
> want to get to whatever the request local object is inside a template.

That's right, I forgot about 'c'.  But that illustrates the problem
right there: request-local data is on a completely different object
that people forget about.

-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to