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

Type Main

object --+
         |
        Main


main svnmailer logic
Method Summary
  __init__(self, options)
Initialization
  run(self)
Dispatches the work to be done
  _closeRepository(self)
Closes the repository
list _getChanges(self)
Returns the list of changes for the requested revision
dict _getDefaultSubst(self, group, repos_path, path)
Returns the default substitution dict
list _getGroupsByChange(self, change)
Returns the matching groups for a particular change
list _getGroupSets(self)
Returns the list of groupsets (grouped groups...) to notify
svnmailer.notifier.selector.Selector _getNotifierSelector(self)
Returns the notifier selector
svnmailer.config.ConfigFileSettings _getSettings(self, options)
Returns the settings object
  _openRepository(self)
Opens the repository
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  __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)...

Instance Variable Summary
svnmailer.settings.Settings _settings: The settings to use

Method Details

__init__(self, options)
(Constructor)

Initialization
Parameters:
options - Command line options
           (type=optparse.OptionParser)
Raises:
ConfigError - Configuration error
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

_closeRepository(self)

Closes the repository

_getChanges(self)

Returns the list of changes for the requested revision
Returns:
The list of changes ([Descriptor, ...])
           (type=list)
Raises:
svnmailer.subversion.Error - Error while accessing the subversion repository

_getDefaultSubst(self, group, repos_path, path)

Returns the default substitution dict
Parameters:
group - The group to consider
           (type=

svnmailer.settings.GroupSettingsContainer)

repos_path - The repository path
           (type=unicode)
path - The change path
           (type=unicode)
Returns:
The initialized dictionary
           (type=dict)
Raises:
svnmailer.subversion.Error - An error occured while accessing the subversion repository

_getGroupsByChange(self, change)

Returns the matching groups for a particular change
Parameters:
change - The change to select
           (type=

svnmailer.subversion.VersionedPathDescriptor)

Returns:
The group list
           (type=list)

_getGroupSets(self)

Returns the list of groupsets (grouped groups...) to notify
Returns:
The list (maybe empty). ([GroupSet, ...])
           (type=list)

_getNotifierSelector(self)

Returns the notifier selector
Returns:
The selector
           (type=svnmailer.notifier.selector.Selector)

_getSettings(self, options)

Returns the settings object
Parameters:
options - Command line options
           (type=svnmailer.cli.SvnmailerOptionParser)
Returns:
The settings object
           (type=svnmailer.config.ConfigFileSettings)
Raises:
ConfigError - configuration error

_openRepository(self)

Opens the repository
Raises:
svnmailer.subversion.Error - Error while accessing the subversion repository

Instance Variable Details

_settings

The settings to use
Type:
svnmailer.settings.Settings

Generated by Epydoc 2.1 on Mon Apr 17 12:39:11 2006 http://epydoc.sf.net