Changeset 8441 for main/waeup.uniben/trunk/src/waeup/uniben/browser
- Timestamp:
- 14 May 2012, 07:55:00 (13 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/browser
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/browser/resources.py
r8066 r8441 21 21 ) 22 22 23 #: All local resources are registered under the name ``waeup_ custom``.23 #: All local resources are registered under the name ``waeup_uniben``. 24 24 waeup_uniben = Library('waeup_uniben', 'static') 25 25 26 custom_theme _1= ResourceInclusion(27 waeup_uniben, 'custom_theme _1.css',26 custom_theme = ResourceInclusion( 27 waeup_uniben, 'custom_theme.css', 28 28 depends = [waeup_base_css]) 29 29 -
main/waeup.uniben/trunk/src/waeup/uniben/browser/tests.py
r8206 r8441 52 52 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 53 53 self.browser.open('http://localhost/app/configuration') 54 self.assertMatches('... Custom Theme 1...', self.browser.contents)55 self.browser.getControl(name="form.skin").value = ['custom theme 1']54 self.assertMatches('...Uniben Theme...', self.browser.contents) 55 self.browser.getControl(name="form.skin").value = ['custom theme'] 56 56 self.browser.getControl("Save").click() 57 57 self.browser.open('http://localhost/app/configuration') -
main/waeup.uniben/trunk/src/waeup/uniben/browser/theming.py
r8088 r8441 18 18 import grok 19 19 from waeup.kofa.browser.interfaces import ITheme 20 from waeup.uniben.browser.resources import custom_theme _1, favicon20 from waeup.uniben.browser.resources import custom_theme, favicon 21 21 22 22 from waeup.uniben.interfaces import MessageFactory as _ 23 23 24 class CustomTheme 1(grok.GlobalUtility):24 class CustomTheme(grok.GlobalUtility): 25 25 """A custom theme based on the Kofa base theme. 26 26 """ 27 27 grok.implements(ITheme) 28 grok.name('custom theme 1')28 grok.name('custom theme') 29 29 30 description = _(u' Custom Theme 1')30 description = _(u'Uniben Theme') 31 31 32 32 def getResources(self): 33 return [custom_theme _1, favicon]33 return [custom_theme, favicon]
Note: See TracChangeset for help on using the changeset viewer.