Package Products :: Package ZenUtils :: Package extdirect :: Package zope :: Module views |
[hide private]
[frames] | no frames]

# Source Code for Module Products.ZenUtils.extdirect.zope.views

     1  ###########################################################################
     2  #
     3  # This program is part of Zenoss Core, an open source monitoring platform.
     4  # Copyright (C) 2011, Zenoss Inc.
     5  #
     6  # This program is free software; you can redistribute it and/or modify it
     7  # under the terms of the GNU General Public License version 2 or (at your
     8  # option) any later version as published by the Free Software Foundation.
     9  #
    10  # For complete information please visit: http://www.zenoss.com/oss/
    11  #
    12  ###########################################################################
    13
    14  from Products.Five.browser import BrowserView
    15  from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
    16
    17 -class ExtDirectJsView(BrowserView):
    18      template = ViewPageTemplateFile('extdirect.js.pt')
    19
    20 -    def __call__(self, *args, **kwargs):
    21          self.request.response.enableHTTPCompression(REQUEST=self.request)
    22          self.request.response.setHeader('Content-Type', 'text/javascript')
    23          return self.template()
    24