Package svnmailer :: Module main

[hide private]

# Module main

source code

# Main Logic of the svnmailer

This module is the central core of the svnmailer. It dispatches all work to be done. It contains just one class (Main), which reads the config file while it is initialized. When the `Main.run()` method is called, it selects the groups to be notified, the notifiers to be run and runs all notifiers for each group.

The Main class may raise several exceptions (which all inherit from Error):

- ConfigError occurs, if the configuration contains errors (like type or value errors, unicode errors etc). The ConfigError exception is initialized with a string describing what kind of error occured.
- NotifierError occurs, if one or more of the notifiers throw an exception. The Main class catches these exceptions (except `KeyboardInterrupt` and `SystemExit`) and will initialize the NotifierError with the list of traceback strings, one for each exception occured. (See the format_exception docs at http://docs.python.org/lib/module-traceback.html).
- svnmailer.subversion.RepositoryError occurs, if something failed while accessing the subversion repository. It contains some attributes for identifying the error: `svn_err_code`, `svn_err_name` and `svn_err_str`

Author: Andr\xc3\xa9 Malo

Classes | [hide private]

| Error Base exception for this module
| ConfigError Configuration error occurred
| NotifierError An Notifier error occured
| Main main svnmailer logic
| GroupSet Container object for a single groupset

Variables | [hide private]

| __package__ = `None` hash(x)