| Home | Trees | Index | Help |
|---|
| Package svnmailer :: Package notifier :: Module _base :: Class BaseNotifier |
|
object --+
|
BaseNotifier
TextNotifierBase class for notifiers
Custom notifiers must implement this interface (that is just the run method, however).
Additionally it contains some useful utility methods, which can be used.| Method Summary | |
|---|---|
Initialization | |
tuple of svnmailer.util.TempFile
|
Dump the two revisions of a particular change |
str
|
Returns the author of the revision |
unicode
|
Returns the content diff action for a particular change |
str
|
Returns the content diff url for a particular change |
svnmailer.differ.*
|
Returns the initialized differ |
tuple
|
Returns valid diff tokens and tests |
str
|
Returns the log entry of the revision |
unicode
|
Returns the property diff action for a particular change |
svnmailer.util.TempFile
|
Returns an open temporary file container object |
int
|
Returns the time of the revision in seconds since epoch |
str
|
Returns the revision URL |
bool
|
Returns if the supplied property seems to be binary |
bool
|
Returns if the supplied property value takes just one line |
Run the notifier | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
helper for pickle... | |
helper for pickle... | |
x.__repr__() <==> repr(x)... | |
x.__setattr__('name', value) <==> x.name = value... | |
x.__str__() <==> str(x)... | |
| Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T... | |
| Instance Variable Summary | |
|---|---|
svnmailer.settings.Settings |
_settings: The settings to use |
| Class Variable Summary | |
|---|---|
tuple |
_diffable_tests: Map generate_diffs list entrys to change methods |
unicode |
ADD: "add" token |
unicode |
COPY: "copy" token |
unicode |
DELETE: "delete" token |
unicode |
MODIFY: "modify" token |
unicode |
NONE: "none" token |
unicode |
PROPCHANGE: "propchange" token |
| Method Details |
|---|
__init__(self,
settings)
Initialization
|
dumpContent(self, change, enc='utf-8')Dump the two revisions of a particular change (This dumps the files, not the properties)
|
getAuthor(self)Returns the author of the revision
|
getContentDiffAction(self, change)Returns the content diff action for a particular change
|
getContentDiffUrl(self, config, change)Returns the content diff url for a particular change
|
getDiffer(self)Returns the initialized differ
|
getDiffTokens(self, config)Returns valid diff tokens and tests
|
getLog(self)Returns the log entry of the revision
|
getPropertyDiffAction(self, values)Returns the property diff action for a particular change
|
getTempFile(self)Returns an open temporary file container object
|
getTime(self)Returns the time of the revision in seconds since epoch
|
getUrl(self, config)Returns the revision URL
|
isBinaryProperty(self, values)Returns if the supplied property seems to be binary Note that is a very rudimentary check, just to not pollute diff output with garbage
|
isOneLineProperty(self, name, value)Returns if the supplied property value takes just one line
|
run(self, groupset)Run the notifier
|
| Instance Variable Details |
|---|
_settingsThe settings to use
|
| Class Variable Details |
|---|
ADD"add" token
|
COPY"copy" token
|
DELETE"delete" token
|
MODIFY"modify" token
|
NONE"none" token
|
PROPCHANGE"propchange" token
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.0 on Mon Feb 14 16:49:18 2005 | http://epydoc.sf.net |