Home | Trees | Index | Help |
---|
Package svnmailer :: Package notifier :: Module _base :: Class BaseNotifier |
|
object
--+
|
BaseNotifier
CIAXMLRPCNotifier
,
TextNotifier
Base 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 | |
str
|
Returns the encoding for the specified path and revision |
tuple
|
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 |
str
|
Returns the content encoding property for a path/rev |
tuple of str
|
Returns the encodings of the change content (base and current rev) |
svnmailer.differ.*
|
Returns the initialized differ |
tuple
|
Returns valid diff tokens and tests |
str
|
Returns the encoding extracted from svn:mime-type |
str
|
Returns the log entry of the revision |
unicode
|
Returns the property diff action for a particular change |
unicode or {str}
|
Returns the temporary directory |
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 |
bool
|
Returns if the supplied property name represents an UTF-8 property |
Runs the notifier | |
Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
T.__new__(S, ...) -> a new object with type S, a subtype of T... | |
helper for pickle... | |
helper for pickle... | |
x.__repr__() <==> repr(x)... | |
x.__setattr__('name', value) <==> x.name = value... | |
x.__str__() <==> str(x)... |
Instance Variable Summary | |
---|---|
list |
_groupset : The groupset to process |
dict |
_penc_cache : The (path, rev) -> property encoding cache |
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 |
str |
ENC_CONFIG : magic value, meaning that the content encoding should be retrieved
from the config |
str |
ENC_DEFAULT = 'show default encoding'
|
str |
ENC_PROPERTY : The property name, where encodings could be stored |
unicode |
MODIFY : "modify" token |
unicode |
NONE : "none" token |
unicode |
PROPCHANGE : "propchange" token |
Method Details |
---|
__init__(self,
settings,
groupset)
Initialization
|
_getContentEncoding(self, path, revision)Returns the encoding for the specified path and revision
|
dumpContent(self, change, enc='utf-8', default=False)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
|
getContentEncodingProperty(self, path, revision)Returns the content encoding property for a path/rev
|
getContentEncodings(self, change, default=None)Returns the encodings of the change content (base and current rev)
|
getDiffer(self, command=None)Returns the initialized differ
|
getDiffTokens(self, config)Returns valid diff tokens and tests
|
getEncodingFromMimeType(self, path, revision)Returns the encoding extracted from svn:mime-type
|
getLog(self)Returns the log entry of the revision
|
getPropertyDiffAction(self, values)Returns the property diff action for a particular change
|
getTempDir(self)Returns the temporary directory
|
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
|
isUTF8Property(self, name)Returns if the supplied property name represents an UTF-8 property
|
run(self)Runs the notifier |
Instance Variable Details |
---|
_groupsetThe groupset to process
|
_penc_cacheThe (path, rev) -> property encoding cache
|
_settingsThe settings to use
|
Class Variable Details |
---|
ADD"add" token
|
COPY"copy" token
|
DELETE"delete" token
|
ENC_CONFIGmagic value, meaning that the content encoding should be retrieved from the config
|
ENC_DEFAULT
|
ENC_PROPERTYThe property name, where encodings could be stored
|
MODIFY"modify" token
|
NONE"none" token
|
PROPCHANGE"propchange" token
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Apr 17 12:39:11 2006 | http://epydoc.sf.net |