Package svnmailer :: Package notifier :: Module _multimail :: Class TruncatingDecorator
[show private | hide private]
[frames | no frames]

Class TruncatingDecorator

object --+
         |
        TruncatingDecorator


Truncates the mail body after n bytes
Method Summary
  __init__(self, settings, groupset, maxsize, drop)
Initialization
  _getMailWriter(self, fp)
Returns a truncating mail writer
list of _MultiMail _getMultiMails(self)
Returns the multipart mail(s)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...

Instance Variable Summary
int max_notification_size: Maximum size of one mail content

Method Details

__init__(self, settings, groupset, maxsize, drop)
(Constructor)

Initialization
Parameters:
maxsize - The maximum number of bytes that should be written into one mail
           (type=int)
drop - maximum number of mails
           (type=int)
Overrides:
__builtin__.object.__init__

_getMailWriter(self, fp)

Returns a truncating mail writer

_getMultiMails(self)

Returns the multipart mail(s)
Returns:
The mail(s)
           (type=list of _MultiMail)

Instance Variable Details

max_notification_size

Maximum size of one mail content
Type:
int

Generated by Epydoc 2.0 on Sun Sep 25 20:49:04 2005 http://epydoc.sf.net