| Home | Trees | Index | Help | 
|---|
| Package svnmailer :: Package notifier :: Module _base :: Class BaseNotifier | 
 | 
object --+
         |
        BaseNotifier
CIAXMLRPCNotifier,
    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 | |
| 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 | 
| Returns the browser generator if any | |
| 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 | 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)... | |
| 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.main.GroupSet | _groupset: The groupset to process | 
| dict | _penc_cache: The (path, rev) -> property encoding cache | 
| svnmailer.settings._base.BaseSettings | _settings: The settings to use | 
| Class Variable Summary | |
|---|---|
| tuple | _diffable_tests: Maps 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: Magic value to determine if the default encoding
should be displayed | 
| 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
 | 
| getBrowserGenerator(self, config)Returns the browser generator if any | 
| 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, tags=False)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_DEFAULTMagic value to determine if the default encoding should be displayed
 | 
| 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.0 on Sun Sep 25 20:49:04 2005 | http://epydoc.sf.net |