Back to index

moin  1.9.0~rc2
Public Member Functions Class Reference

List of all members.

Public Member Functions

def __call__
def get_help

Detailed Description

Displays an HTML version of the normal help, for the interactive
debugger only because it requires a patched sys.stdout.

Definition at line 49 of file

Member Function Documentation

def (   self,
  topic = None 

Definition at line 54 of file

00055     def __call__(self, topic=None):
00056         sys.stdout._write(self.get_help(topic))

Here is the call graph for this function:

Definition at line 57 of file

00058     def get_help(self, topic):
00059         title = text = None
00060         if topic is not None:
00061             import pydoc
00063             rv = sys.stdout.reset().decode('utf-8', 'ignore')
00064             paragraphs = _paragraph_re.split(rv)
00065             if len(paragraphs) > 1:
00066                 title = paragraphs[0]
00067                 text = '\n\n'.join(paragraphs[1:])
00068             else:
00069                 title = 'Help'
00070                 text = paragraphs[0]
00071         return render_template('help_command.html', title=title, text=text)

Here is the call graph for this function:

Here is the caller graph for this function:

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