Re: getting a variable in a templatetag

2010-11-10 Thread Kenneth Gonsalves
On Nov 10, 4:48 pm, Tom Evans wrote: >     user = self.user.resolve(context) yes - I did not put this line (was inheriting from legacy code where there was something called resolve_variable which I think did this in one step. (note to self, however trivial the question may be *always* post the c

getting a variable in a templatetag

2010-11-10 Thread Kenneth Gonsalves
hi, using trunk. I have line in template like this: {% get_current_language as LANGUAGE_CODE %} I want to pass the current language to a templatetag for some processing. So i call it like this: {% get_menu "LANGUAGE_CODE" %} to get the language code, I try: self.lang = Variable(lang), but

Re: getting a variable in a templatetag

2010-11-10 Thread Kenneth Gonsalves
On Wed, 2010-11-10 at 03:21 -0800, Daniel Roseman wrote: > On Nov 10, 11:19 am, Kenneth Gonsalves wrote: > > hi, > > > > using trunk. I have line in template like this: > > > > {% get_current_language as LANGUAGE_CODE %} > > I want to pass the current language to a templatetag for some > > pro

Re: getting a variable in a templatetag

2010-11-10 Thread Daniel Roseman
On Nov 10, 11:19 am, Kenneth Gonsalves wrote: > hi, > > using trunk. I have line in template like this: > >     {% get_current_language as LANGUAGE_CODE %} > I want to pass the current language to a templatetag for some > processing. So i call it like this: > > {% get_menu "LANGUAGE_CODE" %} > > t

Re: getting a variable in a templatetag

2010-11-10 Thread Tom Evans
On Wed, Nov 10, 2010 at 11:25 AM, Kenneth Gonsalves wrote: > On Wed, 2010-11-10 at 03:21 -0800, Daniel Roseman wrote: >> On Nov 10, 11:19 am, Kenneth Gonsalves wrote: >> > hi, >> > >> > using trunk. I have line in template like this: >> > >> >     {% get_current_language as LANGUAGE_CODE %} >> >