Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Private Attributes
MoinMoin.support.flup.server.scgi_base.StdoutWrapper Class Reference

List of all members.

Public Member Functions

def __init__
def write
def writelines
def __getattr__

Public Attributes

 dataWritten

Private Attributes

 _file

Detailed Description

Wrapper for sys.stdout so we know if data has actually been written.

Definition at line 138 of file scgi_base.py.


Constructor & Destructor Documentation

Definition at line 142 of file scgi_base.py.

00142 
00143     def __init__(self, stdout):
00144         self._file = stdout
00145         self.dataWritten = False


Member Function Documentation

Definition at line 155 of file scgi_base.py.

00155 
00156     def __getattr__(self, name):
00157         return getattr(self._file, name)

Definition at line 146 of file scgi_base.py.

00146 
00147     def write(self, data):
00148         if data:
00149             self.dataWritten = True
00150         self._file.write(data)

Here is the caller graph for this function:

Definition at line 151 of file scgi_base.py.

00151 
00152     def writelines(self, lines):
00153         for line in lines:
00154             self.write(line)


Member Data Documentation

Definition at line 143 of file scgi_base.py.

Definition at line 144 of file scgi_base.py.


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