Changeset 5346


Ignore:
Timestamp:
30 Jul 2010, 10:06:19 (14 years ago)
Author:
Henrik Bettermann
Message:

merge changes made in trunk into henrik-experimental-layout

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  
    22develop = .
    33parts = 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/
    55#newest = false
    66#extends= http://grok.zope.org/releaseinfo/grok-1.0.cfg
     
    1919#hurry.zoperesource = 0.4
    2020megrok.layout = 1.0.2
    21 Sphinx = 0.6.4
    2221hurry.resource = 0.4.1  # We need to pin this as hurry.resource 0.9
    2322                        # requires extra packages (WebOb) we don't
     
    108107
    109108[waeupdocs]
    110 recipe = z3c.recipe.sphinxdoc
    111 eggs = waeup.sirp [docs]
    112 default.css =
    113 layout.html =
    114 extensions = sphinx.ext.autodoc
     109recipe = collective.recipe.sphinxbuilder
     110eggs = waeup.sirp
     111source = ${buildout:directory}/docs/source
     112build = ${buildout:directory}/docs/build
  • main/waeup.sirp/branches/henrik-experimental-layout/src/waeup/sirp/app.py

    r5071 r5346  
    2525    """
    2626    grok.implements(IUniversity)
     27   
    2728    # Setup authentication for this app. Note: this is only
    2829    # initialized, when a new instance of this app is created.
     
    3031        PluggableAuthentication, provides = IAuthentication,
    3132        setup = setup_authentication,)
     33
     34    #: The name of the university.
     35    name=u'Sample University'
    3236   
    3337    @property
    3438    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        """
    3549        sitename = self.__name__
    3650        loggername = 'waeup.sirp.%s' % sitename
     
    4761
    4862    def setup(self):
     63        """Setup some hard-wired components.
     64
     65        Create local datacenter, containers for users, students and
     66        the like.
     67        """
    4968        self['users'] = UserContainer()
    5069        self['datacenter'] = DataCenter()
Note: See TracChangeset for help on using the changeset viewer.