Back to index

plone3  3.1.7
Public Member Functions | Private Attributes
GenericSetup.utils._LineWrapper Class Reference

List of all members.

Public Member Functions

def __init__
def queue
def write

Private Attributes

 _writer
 _indent
 _addindent
 _newl
 _max
 _length
 _queue

Detailed Description

Definition at line 333 of file utils.py.


Constructor & Destructor Documentation

def GenericSetup.utils._LineWrapper.__init__ (   self,
  writer,
  indent,
  addindent,
  newl,
  max 
)

Definition at line 335 of file utils.py.

00335 
00336     def __init__(self, writer, indent, addindent, newl, max):
00337         self._writer = writer
00338         self._indent = indent
00339         self._addindent = addindent
00340         self._newl = newl
00341         self._max = max
00342         self._length = 0
00343         self._queue = self._indent


Member Function Documentation

def GenericSetup.utils._LineWrapper.queue (   self,
  text 
)

Definition at line 344 of file utils.py.

00344 
00345     def queue(self, text):
00346         self._queue += text

def GenericSetup.utils._LineWrapper.write (   self,
  text = '',
  enforce = False 
)

Definition at line 347 of file utils.py.

00347 
00348     def write(self, text='', enforce=False):
00349         self._queue += text
00350 
00351         if 0 < self._length > self._max - len(self._queue):
00352             self._writer.write(self._newl)
00353             self._length = 0
00354             self._queue = '%s%s %s' % (self._indent, self._addindent,
00355                                        self._queue)
00356 
00357         if self._queue != self._indent:
00358             self._writer.write(self._queue)
00359             self._length += len(self._queue)
00360             self._queue = ''
00361 
00362         if 0 < self._length and enforce:
00363             self._writer.write(self._newl)
00364             self._length = 0
00365             self._queue = self._indent
00366 

Here is the caller graph for this function:


Member Data Documentation

Definition at line 338 of file utils.py.

Definition at line 337 of file utils.py.

Definition at line 341 of file utils.py.

Definition at line 340 of file utils.py.

Definition at line 339 of file utils.py.

Definition at line 342 of file utils.py.

Definition at line 336 of file utils.py.


The documentation for this class was generated from the following file: