Changeset 5407 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 9 Aug 2010, 09:34:28 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/app.py
r5345 r5407 32 32 setup = setup_authentication,) 33 33 34 # :The name of the university.34 # The name of the university. 35 35 name=u'Sample University' 36 37 # The default layout. 38 skin=u'waeuptheme-gray1.css' 36 39 37 40 @property … … 55 58 56 59 57 def __init__(self, name= u'Sample University', **kw):60 def __init__(self, name=name, skin=skin, **kw): 58 61 super(University, self).__init__(**kw) 59 62 self.name = name 63 self.skin = skin 60 64 self.setup() 61 65 -
main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py
r5387 r5407 103 103 def getAppTitle(self): 104 104 return getattr(grok.getSite(), 'name', u'Sample University') 105 106 def getSkin(self): 107 return getattr(grok.getSite(), 'skin', u'waeuptheme-gray1.css') 105 108 106 109 def isAuthenticated(self): -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/sitelayout.pt
r5400 r5407 21 21 tal:attributes="href static/waeup-base.css" /> 22 22 <link rel="stylesheet" type="text/css" href="" 23 tal:attributes="href st atic/waeuptheme-red1.css" />23 tal:attributes="href string:${static}/${layout/getSkin}" /> 24 24 25 25 <link rel="alternate" type="application/rss+xml" -
main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py
r5069 r5407 36 36 title = u'Name of University', 37 37 default = u'Unnamed', 38 required = True, 39 ) 40 41 skin = schema.Choice( 42 title = u'Skin', 43 default = u'waeuptheme-gray1.css', 44 #values = ['waeuptheme-gray1.css', 'waeuptheme-red1.css'], 45 vocabulary = SimpleWAeUPVocabulary( 46 ('Henrik\'s Gray Theme', 'waeuptheme-gray1.css'), ('Uli\'s Red Theme', 'waeuptheme-red1.css')), 38 47 required = True, 39 48 )
Note: See TracChangeset for help on using the changeset viewer.