Package svnmailer :: Package notifier :: Module _multimail :: Class DiffDescriptor

[hide private]

# Class DiffDescriptor

source code

    object --+
             |
            DiffDescriptor

Container class to describe a dumped diff

Instance Methods | [hide private]

__init__(self, notifier, tmpfile, change, propdiff=False) Initialization | source code

`str`

getValue(self) Returns the diff value | source code

`int`

getSize(self) Returns the size of the diff part | source code

toMIMEPart(self) Returns the diff as MIME part | source code

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

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, notifier, tmpfile, change, propdiff=False)
(Constructor)

source code

Initialization

Parameters:
  - `tmpfile` (`svnmailer.util.TempFile`) - The tempfile the diff was dumped to
  - `change` (`svnmailer.subversion.VersionedPathDescriptor`) - The change in question
  - `propdiff` (`bool`) - is a property diff?
Overrides: object.__init__

### getValue(self)

source code

Returns the diff value

Returns: `str`
  The value

### getSize(self)

source code

Returns the size of the diff part

Returns: `int`
  The size