Changeset 5346
- Timestamp:
- 30 Jul 2010, 10:06:19 (14 years ago)
- Location:
- main/waeup.sirp/branches/henrik-experimental-layout
- Files:
-
- 2 edited
- 31 copied
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/henrik-experimental-layout/buildout.cfg
r5330 r5346 2 2 develop = . 3 3 parts = app data zopectl i18n test waeupdocs coverage-detect coverage-report 4 find-links = http://download.zope.org/distribution/4 #find-links = http://download.zope.org/distribution/ 5 5 #newest = false 6 6 #extends= http://grok.zope.org/releaseinfo/grok-1.0.cfg … … 19 19 #hurry.zoperesource = 0.4 20 20 megrok.layout = 1.0.2 21 Sphinx = 0.6.422 21 hurry.resource = 0.4.1 # We need to pin this as hurry.resource 0.9 23 22 # requires extra packages (WebOb) we don't … … 108 107 109 108 [waeupdocs] 110 recipe = z3c.recipe.sphinxdoc 111 eggs = waeup.sirp [docs] 112 default.css = 113 layout.html = 114 extensions = sphinx.ext.autodoc 109 recipe = collective.recipe.sphinxbuilder 110 eggs = waeup.sirp 111 source = ${buildout:directory}/docs/source 112 build = ${buildout:directory}/docs/build -
main/waeup.sirp/branches/henrik-experimental-layout/src/waeup/sirp/app.py
r5071 r5346 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.