logo       

user in template tag without passing it: msg#02220

DjangoUsers

Subject: user in template tag without passing it


Hey all,

I have a custom template tag like this currently {% extras
user.is_authenticated %}

basically it returns the results of a different template based on
whether the arg is true (user.is_authenticated)
I want to make it simpler, just {% extras %} and have the code inside
be able to access user to do the check itself.

Any ideas how i can find the user in the template tag? it's not in
'context' that gets passed to the Node, I'm guessing i need to get it
in there somehow. context processors don't seem to affect the contexts
passed to these Nodes

Thanks in advance,
Jake
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
django-users+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise