----- Original Message ----- 
From: "Collin Grady" <[EMAIL PROTECTED]>
To: <django-developers@googlegroups.com>
Sent: Wednesday, March 05, 2008 12:49 PM
Subject: Re: Pick a value from list variable in templates


>
> vcc said the following:
>> How about: {{ foo.__bar__ }} ?
>
> Except you can't use _ as the first character in a template lookup like 
> that,
> and the __foo__ naming method is already taken by existing things like 
> __get__,
> __contains__, and other such methods/attributes :)
>
Yes, __foo__ already have some methods/attributes, so if bar='__get__', call 
foo.__get__, bar='something', call foo.something, look like python.

vcc
_ 




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
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