Author: mtredinnick
Date: 2007-02-10 03:02:00 -0600 (Sat, 10 Feb 2007)
New Revision: 4480
Modified:
django/trunk/django/template/context.py
Log:
Fixed #3071 -- added a {{{__contains__}}} method to the Context class. Thanks
akaihola.
Modified: django/trunk/django/template/context.py
===================================================================
--- django/trunk/django/template/context.py 2007-02-10 08:55:18 UTC (rev
4479)
+++ django/trunk/django/template/context.py 2007-02-10 09:02:00 UTC (rev
4480)
@@ -49,6 +49,9 @@
return True
return False
+ def __contains__(self, key):
+ return self.has_key(key)
+
def get(self, key, otherwise=None):
for d in self.dicts:
if d.has_key(key):
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---