Back to index

moin  1.9.0~rc2
Public Member Functions | Private Member Functions | Private Attributes
MoinMoin.support.werkzeug.debug.console.HTMLStringO Class Reference

List of all members.

Public Member Functions

def __init__
def isatty
def close
def reset
def write
def writelines

Private Member Functions

def _write

Private Attributes

 _buffer

Detailed Description

A StringO version that HTML escapes on write.

Definition at line 23 of file console.py.


Constructor & Destructor Documentation

Definition at line 26 of file console.py.

00026 
00027     def __init__(self):
00028         self._buffer = []


Member Function Documentation

Definition at line 40 of file console.py.

00040 
00041     def _write(self, x):
00042         if isinstance(x, str):
00043             x = x.decode('utf-8', 'replace')
00044         self._buffer.append(x)

Here is the caller graph for this function:

Definition at line 32 of file console.py.

00032 
00033     def close(self):
00034         pass

Here is the caller graph for this function:

Definition at line 29 of file console.py.

00029 
00030     def isatty(self):
00031         return False

Definition at line 35 of file console.py.

00035 
00036     def reset(self):
00037         val = ''.join(self._buffer)
00038         del self._buffer[:]
00039         return val

Definition at line 45 of file console.py.

00045 
00046     def write(self, x):
00047         self._write(escape(x))

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 48 of file console.py.

00048 
00049     def writelines(self, x):
00050         self._write(escape(''.join(x)))
00051 

Here is the call graph for this function:


Member Data Documentation

Definition at line 27 of file console.py.


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