<s> __author__ = '<STR_LIT>' <EOL> from django . views . generic . base import View <EOL> from django . views . decorators . cache import never_cache <EOL> from django . http import HttpResponsePermanentRedirect <EOL> from django . conf import settings <EOL> class LicenseView ( View ) : <EOL> template_name = '<STR_LIT>' <EOL> @ never_cache <EOL> def get ( self , request , podname ) : <EOL> return HttpResponsePermanentRedirect ( settings . SHIELD_SERVICE % { '<STR_LIT:status>' : '<STR_LIT:l>' , '<STR_LIT>' : podname } ) <EOL> from django . conf . urls import patterns , url <EOL> urlpatterns = patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , LicenseView . as_view ( ) ) , <EOL> ) </s>
