Last change
on this file since 2248 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
610 bytes
|
Line | |
---|
1 | from Products.CMFCore.utils import getToolByName |
---|
2 | from Products.ResourceRegistries.browser.kss import KSSView as base |
---|
3 | |
---|
4 | class KSSView(base): |
---|
5 | """ Information for kss rendering. """ |
---|
6 | |
---|
7 | def kineticstylesheets(self): |
---|
8 | ksses = super(KSSView, self).kineticstylesheets() |
---|
9 | portal_url = getToolByName(self.context, 'portal_url') |
---|
10 | new_url = portal_url() |
---|
11 | portal_url = portal_url.getPortalObject().absolute_url() |
---|
12 | for kss in ksses: |
---|
13 | src = kss.get('src', '') |
---|
14 | if src != '': |
---|
15 | kss['src'] = src.replace(portal_url, new_url, 1) |
---|
16 | return ksses |
---|
17 | |
---|
Note: See
TracBrowser
for help on using the repository browser.