Ticket #3192: dict-to-update.diff
File dict-to-update.diff, 559 bytes (added by , 18 years ago) |
---|
-
template/context.py
57 57 58 58 def update(self, other_dict): 59 59 "Like dict.update(). Pushes an entire dictionary's keys and values onto the context." 60 if not hasattr(other_dict, '__getitem__'): 61 raise TypeError, 'Dictionary expected.' 60 62 self.dicts = [other_dict] + self.dicts 61 63 62 64 # This is a function rather than module-level procedural code because we only