Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes
MoinMoin.support.werkzeug.wrappers.ResponseStream Class Reference
Collaboration diagram for MoinMoin.support.werkzeug.wrappers.ResponseStream:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def write
def writelines
def close
def flush
def isatty
def encoding

Public Attributes

 response
 closed

Static Public Attributes

string mode = 'wb+'

Detailed Description

A file descriptor like object used by the :class:`ResponseStreamMixin` to
represent the body of the stream.  It directly pushes into the response
iterable of the response object.

Definition at line 902 of file wrappers.py.


Constructor & Destructor Documentation

Definition at line 910 of file wrappers.py.

00910 
00911     def __init__(self, response):
00912         self.response = response
00913         self.closed = False


Member Function Documentation

Definition at line 926 of file wrappers.py.

00926 
00927     def close(self):
00928         self.closed = True

Here is the caller graph for this function:

Definition at line 939 of file wrappers.py.

00939 
00940     def encoding(self):
00941         return self.response.charset
00942 

Here is the caller graph for this function:

Definition at line 929 of file wrappers.py.

00929 
00930     def flush(self):
00931         if self.closed:
00932             raise ValueError('I/O operation on closed file')

Here is the caller graph for this function:

Definition at line 933 of file wrappers.py.

00933 
00934     def isatty(self):
00935         if self.closed:
00936             raise ValueError('I/O operation on closed file')
00937         return False

Definition at line 914 of file wrappers.py.

00914 
00915     def write(self, value):
00916         if self.closed:
00917             raise ValueError('I/O operation on closed file')
00918         buf = self.response.response
00919         if not isinstance(buf, list):
00920             self.response.response = buf = list(buf)
00921         buf.append(value)

Here is the caller graph for this function:

Definition at line 922 of file wrappers.py.

00922 
00923     def writelines(self, seq):
00924         for item in seq:
00925             self.write(item)


Member Data Documentation

Definition at line 912 of file wrappers.py.

Definition at line 908 of file wrappers.py.

Definition at line 911 of file wrappers.py.


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