Back to index

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

List of all members.

Public Member Functions

def __init__
def format

Public Attributes

 raw
 request
 form

Static Public Attributes

int caching = 1
 Dependencies = Dependencies
tuple quickhelp

Detailed Description

Definition at line 175 of file text_rst.py.


Constructor & Destructor Documentation

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

Definition at line 197 of file text_rst.py.

00197 
00198     def __init__(self, raw, request, **kw):
00199         self.raw = raw
00200         self.request = request
00201         self.form = request.form


Member Function Documentation

def MoinMoin.parser.text_rst.Parser.format (   self,
  formatter 
)

Definition at line 202 of file text_rst.py.

00202 
00203     def format(self, formatter):
00204         # Create our simple parser
00205         parser = MoinDirectives(self.request)
00206 
00207         parts = publish_parts(
00208             source=self.raw,
00209             writer=MoinWriter(formatter, self.request),
00210             settings_overrides={
00211                 'halt_level': 5,
00212                 'traceback': True,
00213                 'file_insertion_enabled': 0,
00214                 'raw_enabled': 0,
00215                 'stylesheet_path': '',
00216                 'template': '',
00217             }
00218         )
00219 
00220         html = []
00221         if parts['title']:
00222             # Document title.
00223             html.append(formatter.rawHTML('<h1>%s</h1>' % parts['title']))
00224         # If there is only one subtitle it is propagated by Docutils
00225         # to a document subtitle and is held in parts['subtitle'].
00226         # However, if there is more than one subtitle then this is
00227         # empty and fragment contains all of the subtitles.
00228         if parts['subtitle']:
00229             html.append(formatter.rawHTML('<h2>%s</h2>' % parts['subtitle']))
00230         if parts['docinfo']:
00231             html.append(parts['docinfo'])
00232         html.append(parts['fragment'])
00233         self.request.write(html_escape_unicode('\n'.join(html)))

Here is the call graph for this function:


Member Data Documentation

Definition at line 176 of file text_rst.py.

Definition at line 177 of file text_rst.py.

MoinMoin.parser.text_rst.Parser.form

Definition at line 200 of file text_rst.py.

Initial value:
_("""\
{{{Emphasis: *italic* **bold** ``monospace``Headings: Heading 1  Heading 2  Heading 3      =========  ---------  ~~~~~~~~~Horizontal rule: ----Links: TrailingUnderscore_ `multi word with backticks`_ external_.. _external: http://external-site.example.org/foo/Lists: * bullets; 1., a. numbered items.}}}(!) For more help, see the[[http://docutils.sourceforge.net/docs/user/rst/quickref.html|reStructuredText Quick Reference]].""")

Definition at line 178 of file text_rst.py.

MoinMoin.parser.text_rst.Parser.raw

Definition at line 198 of file text_rst.py.

MoinMoin.parser.text_rst.Parser.request

Definition at line 199 of file text_rst.py.


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