Changeset 7703 for main/waeup.sirp/trunk/src/waeup/sirp/browser
- Timestamp:
- 25 Feb 2012, 12:52:38 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/browser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt
r7700 r7703 35 35 >>> print browser.contents 36 36 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... 37 ...Welcome to the...37 ...Welcome to... 38 38 ... 39 39 -
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r7702 r7703 285 285 grok.context(IUniversity) 286 286 pnav = 0 287 288 @property 289 def label(self): 290 return self.context['configuration'].title 287 label = '' 291 288 292 289 @property … … 294 291 portal_language = getUtility(ISIRPUtils).PORTAL_LANGUAGE 295 292 lang = self.request.cookies.get('sirp.language', portal_language) 296 return self.context['configuration'].frontpage_dict.get(lang,'') 293 html = self.context['configuration'].frontpage_dict.get(lang,'') 294 if html =='': 295 html = self.context[ 296 'configuration'].frontpage_dict.get(portal_language,'') 297 if html =='': 298 return _(u'<h1>Welcome to WAeUP.SIRP</h1>') 299 else: 300 return html 297 301 298 302 class AdministrationPage(SIRPPage):
Note: See TracChangeset for help on using the changeset viewer.