Changeset 7703
- Timestamp:
- 25 Feb 2012, 12:52:38 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 5 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): -
main/waeup.sirp/trunk/src/waeup/sirp/frontpage.rst
r7702 r7703 1 Welcome to the Student Information and Registration Portal 2 ========================================================== 3 1 4 This is the default frontpage of the portal written 2 5 in `reStructuredText (reST) … … 32 35 33 36 >>de<< 37 Willkommen im Studenteninformations- und Registrierungsportal 38 ============================================================= 39 34 40 Dies ist die Standard-Startseite des Portals. Sie wurde in der Markup-Sprache 35 41 `reStructuredText (reST) <http://docutils.sourceforge.net/docs/user/rst/quickref.html>`_ -
main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py
r7702 r7703 398 398 ) 399 399 400 title = schema.TextLine(401 title = u'Title of Frontpage',402 default = u'Welcome to the Student Information and Registration ' +403 u'Portal of Sample University',404 required = False,405 )406 407 400 skin = schema.Choice( 408 401 title = u'Skin', -
main/waeup.sirp/trunk/src/waeup/sirp/widgets/restwidget.py
r7702 r7703 43 43 value = self.context.default 44 44 if value == self.context.missing_value: 45 return ""45 return {} 46 46 parts = value.split('>>') 47 47 elements = {}
Note: See TracChangeset for help on using the changeset viewer.