Package svnmailer :: Module main :: Class Main
[show private | hide private]
[frames | no frames]

Class Main

object --+
         |
        Main


Main svnmailer logic
Method Summary
  __init__(self, settings)
Initialization
Main fromCommandline(cls, background)
Initializes Main from command line arguments (Class method)
Main fromOptions(cls, options)
Initializes Main from an option container (Class method)
  run(self)
Dispatches the work to be done
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...

Instance Method Details

__init__(self, settings)
(Constructor)

Initialization
Parameters:
settings - The settings to use
           (type=svnmailer.settings._base.BaseSettings)
Overrides:
__builtin__.object.__init__

run(self)

Dispatches the work to be done
Raises:
svnmailer.subversion.RepositoryError - Error while accessing the subversion repository
NotifierError - One or more notifiers went crazy

Class Method Details

fromCommandline(cls, background=True)

Initializes Main from command line arguments
Parameters:
background - May the process daemonize itself?
           (type=bool)
Returns:
A new Main instance
           (type=Main)
Raises:
CommandlineError - A command line error occured
ConfigurationError - A configuration error occured

fromOptions(cls, options)

Initializes Main from an option container
Parameters:
options - The options to consider
           (type=optparse.OptionContainer)
Returns:
A new Main instance
           (type=Main)
Raises:
ConfigError - A configuration error occured

Generated by Epydoc 2.0 on Sun Sep 25 20:49:15 2005 http://epydoc.sf.net