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

Class SplittingDecorator

object --+
         |
        SplittingDecorator


Splits the content between diffs, if it gets loo long
Method Summary
  __init__(self, config, groupset, maxsize, drop)
Initialization
  _flushToFinalStream(self, split)
Flushes the current content to the final stream
  _getMailWriter(self, fp)
Returns a splitting mail writer
  _getTextMails(self, charset, enc)
Returns the text mail(s)
  writeContentDiff(self, change)
write the stuff to the real stream
  writeMetaData(self)
write meta data to drop_fp as well
  writePathList(self)
write the stuff to the real stream
  writePropertyDiffs(self, diff_tokens, change)
write the stuff to the real stream
    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
file final_fp: Actual stream object containg all data
int max_notification_size: Maximum size of one mail content

Method Details

__init__(self, config, 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__

_flushToFinalStream(self, split=False)

Flushes the current content to the final stream
Parameters:
split - Should split regardless of the current size?
           (type=bool)

_getMailWriter(self, fp)

Returns a splitting mail writer

_getTextMails(self, charset, enc)

Returns the text mail(s)

writeContentDiff(self, change)

write the stuff to the real stream

writeMetaData(self)

write meta data to drop_fp as well

writePathList(self)

write the stuff to the real stream

writePropertyDiffs(self, diff_tokens, change)

write the stuff to the real stream

Instance Variable Details

drop

maximum number of mails
Type:
int

drop_fp

The alternate summary stream
Type:
file

final_fp

Actual stream object containg all data
Type:
file

max_notification_size

Maximum size of one mail content
Type:
int

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