Changeset 5345


Ignore:
Timestamp:
29 Jul 2010, 23:10:15 (14 years ago)
Author:
uli
Message:

Tell a bit more in docstrings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/app.py

    r5071 r5345  
    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.