Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

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  
    130130             
    131131            # check for overridden templates 
    132132            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]] 
    134134            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)) 
    136136 
    137137 
    138138        if 'charset' not in content_type and (