Back to index

moin  1.9.0~rc2
Classes | Functions | Variables
MoinMoin.support.werkzeug.debug.repr Namespace Reference

Classes

class  _Helper
class  DebugReprGenerator

Functions

def debug_repr
def dump
def _add_subclass_info

Variables

 deque = None
tuple missing = object()
tuple _paragraph_re = re.compile(r'(?:\r\n|\r|\n){2,}')
tuple RegexType = type(_paragraph_re)
tuple helper = _Helper()

Function Documentation

def MoinMoin.support.werkzeug.debug.repr._add_subclass_info (   inner,
  obj,
  base 
) [private]

Definition at line 75 of file repr.py.

00075 
00076 def _add_subclass_info(inner, obj, base):
00077     if isinstance(base, tuple):
00078         for base in base:
00079             if type(obj) is base:
00080                 return inner
00081     elif type(obj) is base:
00082         return inner
00083     module = ''
00084     if obj.__class__.__module__ not in ('__builtin__', 'exceptions'):
00085         module = '<span class="module">%s.</span>' % obj.__class__.__module__
00086     return '%s%s(%s)' % (module, obj.__class__.__name__, inner)
00087 

Here is the caller graph for this function:

Creates a debug repr of an object as HTML unicode string.

Definition at line 32 of file repr.py.

00032 
00033 def debug_repr(obj):
00034     """Creates a debug repr of an object as HTML unicode string."""
00035     return DebugReprGenerator().repr(obj)
00036 

Here is the caller graph for this function:

Print the object details to stdout._write (for the interactive
console of the web debugger.

Definition at line 37 of file repr.py.

00037 
00038 def dump(obj=missing):
00039     """Print the object details to stdout._write (for the interactive
00040     console of the web debugger.
00041     """
00042     gen = DebugReprGenerator()
00043     if obj is missing:
00044         rv = gen.dump_locals(sys._getframe(1).f_locals)
00045     else:
00046         rv = gen.dump_object(obj)
00047     sys.stdout._write(rv)
00048 

Here is the caller graph for this function:


Variable Documentation

tuple MoinMoin.support.werkzeug.debug.repr._paragraph_re = re.compile(r'(?:\r\n|\r|\n){2,}')

Definition at line 28 of file repr.py.

Definition at line 22 of file repr.py.

Definition at line 72 of file repr.py.

Definition at line 27 of file repr.py.

Definition at line 29 of file repr.py.