Allura/allura/lib/patches.py
def lookup_template_engine(self, request):
        '''Wrapper to handle totally borked-up HTTP-ACCEPT headers'''
        try:
            return old_lookup_template_engine(self, request)
        except:
            pass
        environ = dict(request.environ, HTTP_ACCEPT='*/*')
        request = webob.Request(environ)
        return old_lookup_template_engine(self, request)
Wrapper to handle totally borked-up HTTP-ACCEPT headers
Wrapper to handle totally borked-up HTTP-ACCEPT headers
Wrapper to handle totally borked - up HTTP - ACCEPT headers
def lookup_template_engine(self, request):
        try:
            return old_lookup_template_engine(self, request)
        except:
            pass
        environ = dict(request.environ, HTTP_ACCEPT='*/*')
        request = webob.Request(environ)
        return old_lookup_template_engine(self, request)
def lookup_template_engine ( self , request ) : try : return old_lookup_template_engine ( self , request ) except : pass environ = dict ( request . environ , HTTP_ACCEPT = '*/*' ) request = webob . Request ( environ ) return old_lookup_template_engine ( self , request )
Wrapper to handle totally borked-up HTTP-ACCEPT headers
Wrapper to handle totally borked - up HTTP - ACCEPT headers
'''Wrapper to handle totally borked-up HTTP-ACCEPT headers'''
self
request