Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes
MoinMoin.parser.text_html.Parser Class Reference

List of all members.

Public Member Functions

def __init__
def format

Public Attributes

 raw
 request

Static Public Attributes

list extensions = ['.htm', '.html']
 Dependencies = Dependencies

Detailed Description

    Sends HTML code after filtering it.

Definition at line 14 of file text_html.py.


Constructor & Destructor Documentation

def MoinMoin.parser.text_html.Parser.__init__ (   self,
  raw,
  request,
  kw 
)

Definition at line 22 of file text_html.py.

00022 
00023     def __init__(self, raw, request, **kw):
00024         self.raw = raw
00025         self.request = request


Member Function Documentation

def MoinMoin.parser.text_html.Parser.format (   self,
  formatter 
)
Send the text. 

Definition at line 26 of file text_html.py.

00026 
00027     def format(self, formatter):
00028         """ Send the text. """
00029         try:
00030             self.request.write(formatter.rawHTML(Markup(self.raw).sanitize()))
00031         except HTMLParseError, e:
00032             self.request.write(formatter.sysmsg(1) +
00033                 formatter.text(u'HTML parsing error: %s in "%s"' % (e.msg,
00034                                   self.raw.splitlines()[e.lineno - 1].strip())) +
00035                 formatter.sysmsg(0))

Member Data Documentation

Definition at line 20 of file text_html.py.

list MoinMoin.parser.text_html.Parser.extensions = ['.htm', '.html'] [static]

Definition at line 19 of file text_html.py.

Definition at line 23 of file text_html.py.

Definition at line 24 of file text_html.py.


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