Changeset 6129 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 18 May 2011, 20:13:47 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/app.py
r6087 r6129 25 25 """ 26 26 grok.implements(IUniversity) 27 27 28 28 # Setup authentication for this app. Note: this is only 29 29 # initialized, when a new instance of this app is created. … … 34 34 # The name of the university. 35 35 name=u'Sample University' 36 36 37 37 # The default layout. 38 38 skin=u'gray waeup theme' 39 39 40 40 # The default frontpage. 41 41 frontpage= """ 42 42 This is the default frontpage of the portal written 43 in `reStructuredText (reST) <http://docutils.sourceforge.net/docs/user/rst/quickref.html>`_ 44 markup language. 43 in `reStructuredText (reST) 44 <http://docutils.sourceforge.net/docs/user/rst/quickref.html>`_ 45 markup language. 45 46 46 47 Some more reST examples for getting started: … … 72 73 73 74 """ 74 75 75 76 # The default title. 76 77 title=u'Welcome to the Student Information and Registration Portal of %s' % name 77 78 78 79 @property 79 80 def logger(self): … … 82 83 Returns a standard logger object as provided by :mod:`logging` 83 84 module from the standard library. 84 85 85 86 Other components can use this logger to perform log entries 86 87 into the 'main' logfile. … … 94 95 logger = self._setupLogger(logger) 95 96 return logger 96 97 98 def __init__(self, name=name, skin=skin, title=title, frontpage=frontpage, **kw): 97 98 99 def __init__(self, name=name, skin=skin, title=title, 100 frontpage=frontpage, **kw): 99 101 super(University, self).__init__(**kw) 100 102 self.name = name … … 147 149 '%(asctime)s - %(levelname)s - %(message)s') 148 150 handler.setFormatter(formatter) 149 151 150 152 # Don't send log msgs to ancestors. This stops displaying 151 153 # logmessages on the commandline.
Note: See TracChangeset for help on using the changeset viewer.