Changeset 8444 for main/waeup.aaue/trunk/src/waeup/aaue/browser
- Timestamp:
- 14 May 2012, 10:04:25 (13 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/browser/pages.py
r8247 r8444 19 19 from waeup.kofa.browser.pages import ( 20 20 SessionConfigurationAddFormPage, SessionConfigurationManageFormPage) 21 from waeup. uniben.interfaces import (21 from waeup.aaue.interfaces import ( 22 22 ICustomSessionConfiguration, ICustomSessionConfigurationAdd) 23 23 -
main/waeup.aaue/trunk/src/waeup/aaue/browser/resources.py
r8441 r8444 21 21 ) 22 22 23 #: All local resources are registered under the name ``waeup_ uniben``.24 waeup_ uniben = Library('waeup_uniben', 'static')23 #: All local resources are registered under the name ``waeup_custom``. 24 waeup_custom = Library('waeup_custom', 'static') 25 25 26 26 custom_theme = ResourceInclusion( 27 waeup_ uniben, 'custom_theme.css',27 waeup_custom, 'custom_theme.css', 28 28 depends = [waeup_base_css]) 29 29 30 favicon = ResourceInclusion(waeup_ uniben, 'favicon.ico')30 favicon = ResourceInclusion(waeup_custom, 'favicon.ico') -
main/waeup.aaue/trunk/src/waeup/aaue/browser/static/custom_theme.css
r8441 r8444 44 44 45 45 body { 46 background-color: #f3eff2;47 46 } 48 47 -
main/waeup.aaue/trunk/src/waeup/aaue/browser/tests.py
r8441 r8444 22 22 from zope.security.interfaces import Unauthorized 23 23 from waeup.kofa.testing import FunctionalTestCase 24 from waeup. uniben.testing import FunctionalLayer24 from waeup.aaue.testing import FunctionalLayer 25 25 from waeup.kofa.app import University 26 26 … … 52 52 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 53 53 self.browser.open('http://localhost/app/configuration') 54 self.assertMatches('... UnibenTheme...', self.browser.contents)54 self.assertMatches('...AAUE Theme...', self.browser.contents) 55 55 self.browser.getControl(name="form.skin").value = ['custom theme'] 56 56 self.browser.getControl("Save").click() … … 58 58 return 59 59 60 def test_access_live_url(self):61 # We can't access the system with basic authentication62 self.browser.addHeader('Authorization', 'Basic grok:grok')63 self.assertRaises(64 Unauthorized, self.browser.open, 'https://uniben-kofa.waeup.org')65 return60 #def test_access_live_url(self): 61 # # We can't access the system with basic authentication 62 # self.browser.addHeader('Authorization', 'Basic grok:grok') 63 # self.assertRaises( 64 # Unauthorized, self.browser.open, 'https://aaue.waeup.org') 65 # return -
main/waeup.aaue/trunk/src/waeup/aaue/browser/theming.py
r8441 r8444 18 18 import grok 19 19 from waeup.kofa.browser.interfaces import ITheme 20 from waeup. uniben.browser.resources import custom_theme, favicon20 from waeup.aaue.browser.resources import custom_theme, favicon 21 21 22 from waeup. uniben.interfaces import MessageFactory as _22 from waeup.aaue.interfaces import MessageFactory as _ 23 23 24 24 class CustomTheme(grok.GlobalUtility): … … 28 28 grok.name('custom theme') 29 29 30 description = _(u' UnibenTheme')30 description = _(u'AAUE Theme') 31 31 32 32 def getResources(self):
Note: See TracChangeset for help on using the changeset viewer.