Back to index

moin  1.9.0~rc2
Public Member Functions
test_text_csv.ParserTestCase Class Reference
Inheritance diagram for test_text_csv.ParserTestCase:
Inheritance graph

List of all members.

Public Member Functions

def parse

Detailed Description

Helper class that provide a parsing method 

Definition at line 20 of file

Member Function Documentation

def test_text_csv.ParserTestCase.parse (   self,
Parse body and return html

Create a page with body, then parse it and format using html formatter

Definition at line 23 of file

00024     def parse(self, body):
00025         """Parse body and return html
00027         Create a page with body, then parse it and format using html formatter
00028         """
00029         request = self.request
00030         assert body is not None
00031         request.reset()
00032         page = Page(request, PAGENAME)
00033         page.hilite_re = None
00034         page.set_raw_body(body)
00035         formatter = HtmlFormatter(request)
00036         formatter.setPage(page)
00037         page.formatter = formatter
00038 = page
00039         request.formatter = formatter
00040         parser = CSV_Parser(body, request, line_anchors=False)
00041         formatter.startContent('') # needed for _include_stack init
00042         output = request.redirectedOutput(parser.format, formatter)
00043         formatter.endContent('')
00044         return output

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: