Package svnmailer :: Package settings :: Module _base :: Class BaseMapper
[show private | hide private]
[frames | no frames]

Class BaseMapper

object --+
         |
        BaseMapper

Known Subclasses:
PlainMapper

Base class for mapper generators
Method Summary
  __init__(self, config)
Initialization
  cleanup(self)
Cleanup.
callable create(self, spec)
Returns the actual mapper based on spec
  init(self)
Custom initialization
    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 Variable Summary
BaseConfig _config: The config object

Method Details

__init__(self, config)
(Constructor)

Initialization

Don't override this method, use init instead

Parameters:
config - The config object
           (type=BaseConfig)
Overrides:
__builtin__.object.__init__

cleanup(self)

Cleanup. Called after all maps are resolved

create(self, spec)

Returns the actual mapper based on spec

This method must be implemented by subclasses

Parameters:
spec - The mapping spec
           (type=str)
Returns:
The new mapper function or None if spec was not suitable for this mapper
           (type=callable)

init(self)

Custom initialization

Instance Variable Details

_config

The config object
Type:
BaseConfig

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