- Timestamp:
- 29 Jul 2010, 23:10:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/app.py
r5071 r5345 25 25 """ 26 26 grok.implements(IUniversity) 27 27 28 # Setup authentication for this app. Note: this is only 28 29 # initialized, when a new instance of this app is created. … … 30 31 PluggableAuthentication, provides = IAuthentication, 31 32 setup = setup_authentication,) 33 34 #: The name of the university. 35 name=u'Sample University' 32 36 33 37 @property 34 38 def logger(self): 39 """The application logger. 40 41 Returns a standard logger object as provided by :mod:`logging` 42 module from the standard library. 43 44 Other components can use this logger to perform log entries 45 into the 'main' logfile. 46 47 The logger is initialized the first time, it is called. 48 """ 35 49 sitename = self.__name__ 36 50 loggername = 'waeup.sirp.%s' % sitename … … 47 61 48 62 def setup(self): 63 """Setup some hard-wired components. 64 65 Create local datacenter, containers for users, students and 66 the like. 67 """ 49 68 self['users'] = UserContainer() 50 69 self['datacenter'] = DataCenter()
Note: See TracChangeset for help on using the changeset viewer.