Changeset 5961 for main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py
- Timestamp:
- 22 Apr 2011, 02:08:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py
r5433 r5961 13 13 from zope.app.component.hooks import getSite 14 14 from waeup.sirp.interfaces import IWAeUPObject 15 from waeup.sirp.browser.interfaces import ITheme 16 from waeup.sirp.browser.theming import get_all_themes 15 17 16 18 grok.templatedir('templates') … … 104 106 return getattr(grok.getSite(), 'name', u'Sample University') 105 107 106 def getSkin(self):107 return getattr(grok.getSite(), 'skin', u'waeuptheme-gray1.css')108 109 108 def isAuthenticated(self): 110 109 """Return True if the calling user is authenticated. … … 128 127 129 128 def update(self): 130 yui.reset_fonts_grids.need() 131 yui.sam.need() 129 theme_name = getattr(grok.getSite(), 'skin', 'gray waeup theme') 130 theme = getUtility(ITheme, name=theme_name) 131 for resource in theme.getResources(): 132 resource.need() 133 return
Note: See TracChangeset for help on using the changeset viewer.