@cache_page(((60 * 60) * 168))
def opensearch_plugin(request):
 host = (u'%s://%s' % (('https' if request.is_secure() else 'http'), request.get_host()))
 return render_to_response('search/plugin.html', {'host': host, 'locale': request.LANGUAGE_CODE}, content_type='application/opensearchdescription+xml')

@ cache_page ( ( ( 60 * 60 ) * 168 ) ) def opensearch_plugin ( request ) : host = ( u'%s://%s' % ( ( 'https' if request . is_secure ( ) else 'http' ) , request . get_host ( ) ) ) return render_to_response ( 'search/plugin.html' , { 'host' : host , 'locale' : request . LANGUAGE_CODE } , content_type = 'application/opensearchdescription+xml' )
render an opensearch plugin .