Last change
on this file since 3219 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
|
Rev | Line | |
---|
[1182] | 1 | import os |
---|
| 2 | |
---|
| 3 | from Products.Five.browser import BrowserView |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | class 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.