Ignore:
Timestamp:
14 May 2012, 07:55:00 (13 years ago)
Author:
Henrik Bettermann
Message:

Prepare uniben package so that it can be used as a base for further custom packages. Us term 'uniben' or 'Uniben' only if necessary.

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  
    2121    )
    2222
    23 #: All local resources are registered under the name ``waeup_custom``.
     23#: All local resources are registered under the name ``waeup_uniben``.
    2424waeup_uniben = Library('waeup_uniben', 'static')
    2525
    26 custom_theme_1 = ResourceInclusion(
    27     waeup_uniben, 'custom_theme_1.css',
     26custom_theme = ResourceInclusion(
     27    waeup_uniben, 'custom_theme.css',
    2828    depends = [waeup_base_css])
    2929
  • main/waeup.uniben/trunk/src/waeup/uniben/browser/tests.py

    r8206 r8441  
    5252        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    5353        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']
    5656        self.browser.getControl("Save").click()
    5757        self.browser.open('http://localhost/app/configuration')
  • main/waeup.uniben/trunk/src/waeup/uniben/browser/theming.py

    r8088 r8441  
    1818import grok
    1919from waeup.kofa.browser.interfaces import ITheme
    20 from waeup.uniben.browser.resources import custom_theme_1, favicon
     20from waeup.uniben.browser.resources import custom_theme, favicon
    2121
    2222from waeup.uniben.interfaces import MessageFactory as _
    2323
    24 class CustomTheme1(grok.GlobalUtility):
     24class CustomTheme(grok.GlobalUtility):
    2525    """A custom theme based on the Kofa base theme.
    2626    """
    2727    grok.implements(ITheme)
    28     grok.name('custom theme 1')
     28    grok.name('custom theme')
    2929
    30     description = _(u'Custom Theme 1')
     30    description = _(u'Uniben Theme')
    3131
    3232    def getResources(self):
    33         return [custom_theme_1, favicon]
     33        return [custom_theme, favicon]
Note: See TracChangeset for help on using the changeset viewer.