Ticket #2451: tg2.1_decorators.py.diff
| File tg2.1_decorators.py.diff, 782 bytes (added by vinces1979, 2 years ago) |
|---|
-
tg/decorators.py
diff -r 31f7a22b9b24 tg/decorators.py
a b 130 130 131 131 # check for overridden templates 132 132 try: 133 engine, template, exclude_names = request._override_mapping[self.controller][content_type ]133 engine, template, exclude_names = request._override_mapping[self.controller][content_type.split(";")[0]] 134 134 except (AttributeError, KeyError): 135 engine, template, exclude_names = self.engines.get(content_type, (None, None, None))135 engine, template, exclude_names = self.engines.get(content_type, (None, None, None)) 136 136 137 137 138 138 if 'charset' not in content_type and (