Package svnmailer :: Package notifier :: Module stdout :: Class StdoutNotifier

[hide private]

# Class StdoutNotifier

source code

            object --+
                     |
    _base.BaseNotifier --+
                         |
        _text.TextNotifier --+
                             |
                            StdoutNotifier

Writes all stuff to sys.stdout

Instance Methods | [hide private]

run(self) Print the notification to stdout | source code

_writeNotification(self) Writes the whole diff notification body | source code

_writePreamble(self, groups) Writes the stdout preamble for the selected groups | source code

`str`

_getOutputEnc(self, fp) Returns the "proper" output encoding | source code

Inherited from `_text.TextNotifier`: `__init__`, `getDate`, `writeContentDiff`, `writeContentDiffAction`, `writeDiff`, `writeDiffList`, `writeLockData`, `writeMetaData`, `writePathInfo`, `writePathList`, `writePropertyDiff`, `writePropertyDiffAction`, `writePropertyDiffs`, `writeRevPropData`

Inherited from `_text.TextNotifier` (private): `_doWritePathList`

Inherited from `_base.BaseNotifier`: `dumpContent`, `getAuthor`, `getContentDiffAction`, `getContentDiffUrl`, `getContentEncodingProperty`, `getContentEncodings`, `getDiffTokens`, `getDiffer`, `getEncodingFromMimeType`, `getLog`, `getPropertyDiffAction`, `getTempDir`, `getTempFile`, `getTime`, `getUrl`, `isBinaryProperty`, `isOneLineProperty`, `isUTF8Property`

Inherited from `_base.BaseNotifier` (private): `_getContentEncoding`

Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]

| __implements__ = ``[`<class 'svnmailer.notifier._text.TextNotifie`...``
file like object | _fp = `None` `None`
Inherited from `_text.TextNotifier`: `OUTPUT_SEPARATOR`, `OUTPUT_SEPARATOR_LIGHT` Inherited from `_base.BaseNotifier`: `ADD`, `COPY`, `DELETE`, `ENC_CONFIG`, `ENC_DEFAULT`, `ENC_PROPERTY`, `MODIFY`, `NONE`, `PROPCHANGE` Inherited from `_base.BaseNotifier` (private): `_diffable_tests`

Instance Variables | [hide private]

Inherited from `_text.TextNotifier`: `changeset`, `config`, `differ`, `fp` Inherited from `_base.BaseNotifier` (private): `_groupset`, `_penc_cache`, `_settings`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### run(self)

source code

Print the notification to stdout

Overrides: _base.BaseNotifier.run

### _writePreamble(self, groups)

source code

Writes the stdout preamble for the selected groups

Parameters:
  - `groups` (`list`) - The groups that are notified

### _getOutputEnc(self, fp)

source code

Returns the "proper" output encoding

If the output goes to a terminal, the method tries to get the current locale encoding. UTF-8 is default and fallback if anything fails.

Parameters:
  - `fp` (file like object) - The file object written to
Returns: `str`
  The chosen encoding

Class Variable Details | [hide private]

### __implements__

Value:

      [<class 'svnmailer.notifier._text.TextNotifier'>]