Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes
MoinMoin.parser.text.Parser Class Reference
Collaboration diagram for MoinMoin.parser.text.Parser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def format

Public Attributes

 raw
 request
 form

Static Public Attributes

string extensions = '*'
 specify extensions willing to handle should be a list of extensions including the leading dot TODO: remove the leading dot from the extension.
list Dependencies = []

Private Attributes

 _

Detailed Description

    Send plain text in a HTML <pre> element.

Definition at line 11 of file text.py.


Constructor & Destructor Documentation

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

Definition at line 25 of file text.py.

00025 
00026     def __init__(self, raw, request, **kw):
00027         self.raw = raw
00028         self.request = request
00029         self.form = request.form
00030         self._ = request.getText


Member Function Documentation

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

Definition at line 31 of file text.py.

00031 
00032     def format(self, formatter):
00033         """ Send the text. """
00034         self.request.write(formatter.preformatted(1))
00035         self.request.write(formatter.text(self.raw.expandtabs()))
00036         self.request.write(formatter.preformatted(0))

Member Data Documentation

Definition at line 29 of file text.py.

Definition at line 23 of file text.py.

specify extensions willing to handle should be a list of extensions including the leading dot TODO: remove the leading dot from the extension.

This is stupid. extensions = ['.txt'] use '*' instead of the list(!) to specify a default parser which is used as fallback

Definition at line 22 of file text.py.

Definition at line 28 of file text.py.

Definition at line 26 of file text.py.

Definition at line 27 of file text.py.


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