Ticket #3071: context_contains.diff
File context_contains.diff, 422 bytes (added by , 18 years ago) |
---|
-
template/context.py
49 49 return True 50 50 return False 51 51 52 def __contains__(self, key): 53 return self.has_key(key) 54 52 55 def get(self, key, otherwise=None): 53 56 for d in self.dicts: 54 57 if d.has_key(key):