On Sun, Nov 9, 2008 at 6:40 AM, Eric Holscher <[EMAIL PROTECTED]> wrote:
> For my pony request, it would be really nice to have a way to get "user
> defined" context. This being things that were passed from views, set in
> template tags, (and maybe other places?). That is what the above code is
> trying to do. I haven't thought about how to do it, but I agree with James
> that some thought needs to be placed into this.
>
> A simple workaround might be to flatten the lists in request.context, but
> then keys in the dictionaries might be overwritten.

This has some overlap with ticket #5333, which describes a request for
assertContext; the ticket discussion describes why that idea isn't
necessarily what we want, but the broader idea is something worth
addressing. It is possible to use contexts in templates, but it
certainly isn't easy. Finding the best way to wrap an API around
contexts to make them easily testable is definitely worth doing.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to