source: products/quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/browser/css.py @ 1182

Last change on this file since 1182 was 1182, checked in by piv, 15 years ago

add registration for csshover configlet, moved here csshover.htc as browser view with content-type x-component, started with customization of global sections viewlet, move css from qPloneDropDownMenu product, added TODO.txt

  • Property svn:eol-style set to native
File size: 534 bytes
Line 
1import os
2
3from Products.Five.browser import BrowserView
4
5
6class CSSHoverView(BrowserView):
7    """Return csshover.htc js for IE < 7, this requires python class only
8    because of need to set custom content type for that resource.
9    """
10
11    def __call__(self):
12        """Main method"""
13        resource = file(os.path.join(os.path.dirname(__file__),
14                                     'resources', 'csshover.htc'), 'r').read()
15        self.request.response.setHeader('Content-Type', 'text/x-component')
16        return resource
Note: See TracBrowser for help on using the repository browser.