Home | Trees | Index | Help |
---|
Package svnmailer :: Package notifier :: Module _text :: Class TextNotifier |
|
object
--+ |BaseNotifier
--+ | TextNotifier
StdoutNotifier
,
TextMailNotifier
Base class for plain text notifications
The derived class must implement the run method, which should finally should call thewriteNotification
method.
Method Summary | |
---|---|
Initialization | |
str
|
Returns the revision date in a human readable format |
Writes the content diff for a particular change | |
str
|
Writes the content diff action for a particular change |
Writes a diff | |
Writes the commit diffs | |
Writes the commit metadata output | |
Writes the whole diff notification body | |
Writes a short info about the kind of change | |
Writes the commit path list | |
str
|
Writes the property diff action for a particular change |
Writes the property diffs for a particular change | |
Writes the revisio property change data | |
Inherited from BaseNotifier | |
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 | |
---|---|
list |
changeset : The list of changes to process |
svnmailer.settings._GroupSettingsContainer |
config : The group config |
file like object | fp : The file to write to |
Inherited from BaseNotifier | |
svnmailer.settings.Settings |
_settings : The settings to use |
Class Variable Summary | |
---|---|
type |
__implements__ = svnmailer.notifier._base.BaseNotifier |
str |
OUTPUT_SEPARATOR : the separator between headline and diff |
str |
OUTPUT_SEPARATOR_LIGHT : the separator between headline and property diff |
Inherited from BaseNotifier | |
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
|
getDate(self)Returns the revision date in a human readable format
|
writeContentDiff(self, change)Writes the content diff for a particular change
|
writeContentDiffAction(self, change)Writes the content diff action for a particular change
|
writeDiff(self, token, name1, name2, value1, value2, isfile=False)Writes a diff By defaultvalue1 and value2 are strings to diff, but if isfile is set and True ,
these are treated as names of files to diff.
|
writeDiffList(self)Writes the commit diffs |
writeMetaData(self)Writes the commit metadata output |
writeNotification(self, fp, config, changeset)Writes the whole diff notification body
|
writePathInfo(self, change)Writes a short info about the kind of change
|
writePathList(self)Writes the commit path list |
writePropertyDiffAction(self, change, name, values, diff_tokens)Writes the property diff action for a particular change
|
writePropertyDiffs(self, diff_tokens, change)Writes the property diffs for a particular change
|
writeRevPropData(self)Writes the revisio property change data |
Instance Variable Details |
---|
changesetThe list of changes to process
|
configThe group config
|
fpThe file to write to
|
Class Variable Details |
---|
OUTPUT_SEPARATORthe separator between headline and diff
|
OUTPUT_SEPARATOR_LIGHTthe separator between headline and property diff
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Mon Feb 14 16:49:16 2005 | http://epydoc.sf.net |