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

Class SplittingDecorator

object --+
         |
        SplittingDecorator


Splits the content between diffs if it gets too long
Method Summary
  __init__(self, settings, groupset, maxsize, drop)
Initialization
  _getMailWriter(self, fp)
inits the drop_fp
list of _MultiMail _getMultiMails(self)
Returns the multipart mail(s)
  writeMetaData(self)
write meta data to drop_fp as well
    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 drop: maximum number of mails
file drop_fp: The alternate summary stream
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)

inits the drop_fp

_getMultiMails(self)

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

writeMetaData(self)

write meta data to drop_fp as well

Instance Variable Details

drop

maximum number of mails
Type:
int

drop_fp

The alternate summary stream
Type:
file

max_notification_size

Maximum size of one mail content
Type:
int

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