Back to index

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

List of all members.

Public Member Functions

def __init__
def register
def get_source_by_code

Private Attributes

 _storage

Detailed Description

Definition at line 104 of file console.py.


Constructor & Destructor Documentation

Definition at line 106 of file console.py.

00106 
00107     def __init__(self):
00108         self._storage = {}


Member Function Documentation

Definition at line 116 of file console.py.

00116 
00117     def get_source_by_code(self, code):
00118         try:
00119             return self._storage[id(code)]
00120         except KeyError:
00121             pass
00122 

Definition at line 109 of file console.py.

00109 
00110     def register(self, code, source):
00111         self._storage[id(code)] = source
00112         # register code objects of wrapped functions too.
00113         for var in code.co_consts:
00114             if isinstance(var, CodeType):
00115                 self._storage[id(var)] = source


Member Data Documentation

Definition at line 107 of file console.py.


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