Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes
MoinMoin.formatter.pagelinks.Formatter Class Reference
Inheritance diagram for MoinMoin.formatter.pagelinks.Formatter:
Inheritance graph
[legend]
Collaboration diagram for MoinMoin.formatter.pagelinks.Formatter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def pagelink
def null
def set_highlight_re
def lang
def setPage
def sysmsg
def startDocument
def endDocument
def startContent
def endContent
def interwikilink
def url
def attachment_link
def attachment_image
def attachment_drawing
def attachment_inlined
def anchordef
def line_anchordef
def anchorlink
def line_anchorlink
def image
def transclusion
def transclusion_param
def smiley
def nowikiword
def text
def strong
def emphasis
def underline
def highlight
def sup
def sub
def strike
def code
def preformatted
def small
def big
def code_area
def code_line
def code_token
def linebreak
def paragraph
def rule
def icon
def number_list
def bullet_list
def listitem
def definition_list
def definition_term
def definition_desc
def heading
def table
def table_row
def table_cell
def macro
def parser
def div
def span
def rawHTML
def escapedText
def comment
def sanitize_to_id
def make_id_unique
def qualify_id

Public Attributes

 request
 pagelinks
 in_p
 in_pre
 page

Static Public Attributes

 set_highlight_re = rawHTMLurlimagesmileytextnull
 strong = emphasisunderlinehighlightsupsubstrikenull
 code = preformattedsmallbigcode_areacode_linenull
 code_token = linebreakparagraphruleiconnull
 number_list = bullet_listlistitemdefinition_listnull
 definition_term = definition_descheadingtablenull
 table_row = table_cellattachment_linkattachment_imageattachment_drawingnull
 transclusion = transclusion_paramnull
string hardspace = ' '

Detailed Description

Collect pagelinks and format nothing :-) 

Definition at line 11 of file pagelinks.py.


Member Function Documentation

def MoinMoin.formatter.FormatterBase.anchordef (   self,
  name 
) [inherited]

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.dom_xml.Formatter, and MoinMoin.formatter.text_xml.Formatter.

Definition at line 147 of file __init__.py.

00147 
00148     def anchordef(self, name):
00149         return ""

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.anchorlink (   self,
  on,
  name = '',
  kw 
) [inherited]

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.dom_xml.Formatter, and MoinMoin.formatter.text_xml.Formatter.

Definition at line 153 of file __init__.py.

00153 
00154     def anchorlink(self, on, name='', **kw):
00155         return ""

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.attachment_drawing (   self,
  url,
  text,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.attachment_image (   self,
  url,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.attachment_inlined (   self,
  url,
  text,
  kw 
) [inherited]

Reimplemented in MoinMoin.formatter.text_gedit.Formatter.

Definition at line 123 of file __init__.py.

00123 
00124     def attachment_inlined(self, url, text, **kw):
00125         from MoinMoin.action import AttachFile
00126         import os
00127         _ = self.request.getText
00128         pagename, filename = AttachFile.absoluteName(url, self.page.page_name)
00129         fname = wikiutil.taintfilename(filename)
00130         fpath = AttachFile.getFilename(self.request, pagename, fname)
00131         ext = os.path.splitext(filename)[1]
00132         Parser = wikiutil.getParserForExtension(self.request.cfg, ext)
00133         if Parser is not None:
00134             try:
00135                 content = file(fpath, 'r').read()
00136                 # Try to decode text. It might return junk, but we don't
00137                 # have enough information with attachments.
00138                 content = wikiutil.decodeUnknownInput(content)
00139                 colorizer = Parser(content, self.request, filename=filename)
00140                 colorizer.format(self)
00141             except IOError:
00142                 pass
00143 
00144         return (self.attachment_link(1, url) +
00145                 self.text(text) +
00146                 self.attachment_link(0))

Here is the call graph for this function:

def MoinMoin.formatter.FormatterBase.attachment_link (   self,
  on,
  url = None,
  kw 
) [inherited]

Reimplemented in MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_plain.Formatter, MoinMoin.formatter.text_gedit.Formatter, and MoinMoin.formatter.text_xml.Formatter.

Definition at line 116 of file __init__.py.

00116 
00117     def attachment_link(self, on, url=None, **kw):
        raise NotImplementedError

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.big (   self,
  on,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.bullet_list (   self,
  on,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.code (   self,
  on,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.code_area (   self,
  on,
  code_id,
  kw 
) [inherited]

Definition at line 248 of file __init__.py.

00248 
00249     def code_area(self, on, code_id, **kw):
00250         raise NotImplementedError

def MoinMoin.formatter.FormatterBase.code_line (   self,
  on 
) [inherited]

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_xml.Formatter, and MoinMoin.formatter.text_plain.Formatter.

Definition at line 251 of file __init__.py.

00251 
00252     def code_line(self, on):
00253         raise NotImplementedError

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.code_token (   self,
  tok_text,
  tok_type 
) [inherited]
def MoinMoin.formatter.FormatterBase.comment (   self,
  text,
  kw 
) [inherited]

Reimplemented in MoinMoin.formatter.text_gedit.Formatter.

Definition at line 389 of file __init__.py.

00389 
00390     def comment(self, text, **kw):
00391         return ""

def MoinMoin.formatter.FormatterBase.definition_desc (   self,
  on,
  kw 
) [inherited]

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.text_plain.Formatter, and MoinMoin.formatter.text_xml.Formatter.

Definition at line 288 of file __init__.py.

00288 
00289     def definition_desc(self, on, **kw):
00290         raise NotImplementedError

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.definition_list (   self,
  on,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.definition_term (   self,
  on,
  compact = 0,
  kw 
) [inherited]

Reimplemented in MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.text_plain.Formatter, and MoinMoin.formatter.text_xml.Formatter.

Definition at line 285 of file __init__.py.

00285 
00286     def definition_term(self, on, compact=0, **kw):
00287         raise NotImplementedError

def MoinMoin.formatter.FormatterBase.div (   self,
  on,
  kw 
) [inherited]
open/close a blocklevel division 

Reimplemented in MoinMoin.formatter.text_html.Formatter, and MoinMoin.formatter.text_docbook.Formatter.

Definition at line 354 of file __init__.py.

00354 
00355     def div(self, on, **kw):
00356         """ open/close a blocklevel division """
00357         return ""

def MoinMoin.formatter.FormatterBase.emphasis (   self,
  on,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.endContent (   self) [inherited]

Reimplemented in MoinMoin.formatter.text_docbook.Formatter, and MoinMoin.macro.TableOfContents.TOCFormatter.

Definition at line 80 of file __init__.py.

00080 
00081     def endContent(self):
00082         if self.page:
00083             self.request.uid_generator.end()
00084         return ""

Reimplemented in MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.text_xml.Formatter, and MoinMoin.formatter.text_plain.Formatter.

Definition at line 72 of file __init__.py.

00072 
00073     def endDocument(self):
00074         return ""

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.escapedText (   self,
  on,
  kw 
) [inherited]
This allows emitting text as-is, anything special will
    be escaped (at least in HTML, some text output format
    would possibly do nothing here)

Reimplemented in MoinMoin.formatter.text_html.Formatter, and MoinMoin.formatter.dom_xml.Formatter.

Definition at line 382 of file __init__.py.

00382 
00383     def escapedText(self, on, **kw):
00384         """ This allows emitting text as-is, anything special will
00385             be escaped (at least in HTML, some text output format
00386             would possibly do nothing here)
00387         """
00388         return ""

def MoinMoin.formatter.FormatterBase.heading (   self,
  on,
  depth,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.highlight (   self,
  on,
  kw 
) [inherited]

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.text_plain.Formatter, and MoinMoin.formatter.text_xml.Formatter.

Definition at line 222 of file __init__.py.

00222 
00223     def highlight(self, on, **kw):
00224         raise NotImplementedError

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.icon (   self,
  type 
) [inherited]

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_gedit.Formatter, and MoinMoin.formatter.text_xml.Formatter.

Definition at line 268 of file __init__.py.

00268 
00269     def icon(self, type):
00270         return type

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.image (   self,
  src = None,
  kw 
) [inherited]
An inline image.

Extra keyword arguments are according to the HTML <img> tag attributes.
In particular an 'alt' or 'title' argument should give a description
of the image.

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_plain.Formatter, and MoinMoin.formatter.text_xml.Formatter.

Definition at line 159 of file __init__.py.

00159 
00160     def image(self, src=None, **kw):
00161         """An inline image.
00162 
00163         Extra keyword arguments are according to the HTML <img> tag attributes.
00164         In particular an 'alt' or 'title' argument should give a description
00165         of the image.
00166         """
00167         title = src
00168         for titleattr in ('title', 'html__title', 'alt', 'html__alt'):
00169             if titleattr in kw:
00170                 title = kw[titleattr]
00171                 break
00172         if title:
00173             return '[Image:%s]' % title
00174         return '[Image]'

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.interwikilink (   self,
  on,
  interwiki = '',
  pagename = '',
  kw 
) [inherited]
calls pagelink() for internal interwikilinks
    to make sure they get counted for self.pagelinks.
    IMPORTANT: on and off must be called with same parameters, see
       also the text_html formatter.

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_xml.Formatter, MoinMoin.formatter.text_gedit.Formatter, and MoinMoin.formatter.text_plain.Formatter.

Definition at line 100 of file __init__.py.

00100 
00101     def interwikilink(self, on, interwiki='', pagename='', **kw):
00102         """ calls pagelink() for internal interwikilinks
00103             to make sure they get counted for self.pagelinks.
00104             IMPORTANT: on and off must be called with same parameters, see
00105                        also the text_html formatter.
00106         """
00107         wikitag, wikiurl, wikitail, wikitag_bad = wikiutil.resolve_interwiki(self.request, interwiki, pagename)
00108         if wikitag == 'Self' or wikitag == self.request.cfg.interwikiname:
00109             return self.pagelink(on, wikitail, **kw)
00110         return ''

Here is the call graph for this function:

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.lang (   self,
  on,
  lang_name 
) [inherited]
def MoinMoin.formatter.FormatterBase.line_anchordef (   self,
  lineno 
) [inherited]

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.dom_xml.Formatter, and MoinMoin.formatter.text_gedit.Formatter.

Definition at line 150 of file __init__.py.

00150 
00151     def line_anchordef(self, lineno):
00152         return ""

def MoinMoin.formatter.FormatterBase.line_anchorlink (   self,
  on,
  lineno = 0 
) [inherited]

Reimplemented in MoinMoin.formatter.text_html.Formatter, and MoinMoin.formatter.text_gedit.Formatter.

Definition at line 156 of file __init__.py.

00156 
00157     def line_anchorlink(self, on, lineno=0):
00158         return ""

def MoinMoin.formatter.FormatterBase.linebreak (   self,
  preformatted = 1 
) [inherited]

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_plain.Formatter, MoinMoin.formatter.text_docbook.Formatter, and MoinMoin.formatter.text_xml.Formatter.

Definition at line 259 of file __init__.py.

00259 
00260     def linebreak(self, preformatted=1):
00261         raise NotImplementedError

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.listitem (   self,
  on,
  kw 
) [inherited]

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_plain.Formatter, MoinMoin.formatter.text_xml.Formatter, and MoinMoin.formatter.groups.Formatter.

Definition at line 279 of file __init__.py.

00279 
00280     def listitem(self, on, **kw):
00281         raise NotImplementedError

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.macro (   self,
  macro_obj,
  name,
  args,
  markup = None 
) [inherited]

Reimplemented in MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_gedit.Formatter, and MoinMoin.macro.TableOfContents.TOCFormatter.

Definition at line 307 of file __init__.py.

00307 
00308     def macro(self, macro_obj, name, args, markup=None):
00309         # call the macro
00310         try:
00311             return macro_obj.execute(name, args)
00312         except ImportError, err:
00313             errmsg = unicode(err)
00314             if not name in errmsg:
00315                 raise
00316             if markup:
00317                 return (self.span(1, title=errmsg) +
00318                         self.text(markup) +
00319                         self.span(0))
00320             else:
                return self.text(errmsg)

Here is the call graph for this function:

def MoinMoin.formatter.FormatterBase.make_id_unique (   self,
  id 
) [inherited]
Take an ID and make it unique in the current namespace.

Definition at line 406 of file __init__.py.

00406 
00407     def make_id_unique(self, id):
00408         '''
00409         Take an ID and make it unique in the current namespace.
00410         '''
00411         ns = self.request.uid_generator.include_id
00412         if not ns is None:
00413             ns = self.sanitize_to_id(ns)
00414         id = self.sanitize_to_id(id)
00415         id = self.request.uid_generator(id, ns)
00416         return id

Here is the call graph for this function:

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.nowikiword (   self,
  text 
) [inherited]

Reimplemented in MoinMoin.formatter.text_gedit.Formatter.

Definition at line 184 of file __init__.py.

00184 
00185     def nowikiword(self, text):
00186         return self.text(text)

Here is the call graph for this function:

def MoinMoin.formatter.pagelinks.Formatter.null (   self,
  args,
  kw 
)

Definition at line 18 of file pagelinks.py.

00018 
00019     def null(self, *args, **kw):
00020         return ''

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.number_list (   self,
  on,
  type = None,
  start = None,
  kw 
) [inherited]
def MoinMoin.formatter.pagelinks.Formatter.pagelink (   self,
  on,
  pagename = '',
  page = None,
  kw 
)
make a link to page <pagename>. Instead of supplying a pagename,
    it is also possible to give a live Page object, then page.page_name
    will be used.

Reimplemented from MoinMoin.formatter.FormatterBase.

Definition at line 14 of file pagelinks.py.

00014 
00015     def pagelink(self, on, pagename='', page=None, **kw):
00016         FormatterBase.pagelink(self, on, pagename, page, **kw)
00017         return self.null()

Here is the call graph for this function:

def MoinMoin.formatter.FormatterBase.paragraph (   self,
  on,
  kw 
) [inherited]

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_plain.Formatter, MoinMoin.formatter.text_docbook.Formatter, and MoinMoin.formatter.text_xml.Formatter.

Definition at line 262 of file __init__.py.

00262 
00263     def paragraph(self, on, **kw):
00264         self.in_p = on != 0

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.parser (   self,
  parser_name,
  lines 
) [inherited]
parser_name MUST be valid!
    writes out the result instead of returning it!

Reimplemented in MoinMoin.formatter.dom_xml.Formatter, and MoinMoin.formatter.text_gedit.Formatter.

Definition at line 331 of file __init__.py.

00331 
00332     def parser(self, parser_name, lines):
00333         """ parser_name MUST be valid!
00334             writes out the result instead of returning it!
00335         """
00336         # attention: this is copied into text_python!
00337         parser = wikiutil.searchAndImportPlugin(self.request.cfg, "parser", parser_name)
00338         args = None
00339         if lines:
00340             args = self._get_bang_args(lines[0])
00341             logging.debug("formatter.parser: parser args %r" % args)
00342             if args is not None:
00343                 lines = lines[1:]
00344         if lines and not lines[0]:
00345             lines = lines[1:]
00346         if lines and not lines[-1].strip():
00347             lines = lines[:-1]
00348         p = parser('\n'.join(lines), self.request, format_args=args)
00349         p.format(self)
00350         del p
00351         return ''

Here is the call graph for this function:

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.preformatted (   self,
  on,
  kw 
) [inherited]

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.text_plain.Formatter, and MoinMoin.formatter.text_xml.Formatter.

Definition at line 237 of file __init__.py.

00237 
00238     def preformatted(self, on, **kw):
00239         self.in_pre = on != 0

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.qualify_id (   self,
  id 
) [inherited]
Take an ID and return a string that is qualified by
the current namespace; this default implementation
is suitable if the dot ('.') is valid in IDs for your
formatter.

Definition at line 417 of file __init__.py.

00417 
00418     def qualify_id(self, id):
00419         '''
00420         Take an ID and return a string that is qualified by
00421         the current namespace; this default implementation
00422         is suitable if the dot ('.') is valid in IDs for your
00423         formatter.
00424         '''
00425         ns = self.request.uid_generator.include_id
00426         if not ns is None:
00427             ns = self.sanitize_to_id(ns)
00428             return '%s.%s' % (ns, id)
00429         return id

Here is the call graph for this function:

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.rawHTML (   self,
  markup 
) [inherited]
This allows emitting pre-formatted HTML markup, and should be
    used wisely (i.e. very seldom).

    Using this event while generating content results in unwanted
    effects, like loss of markup or insertion of CDATA sections
    when output goes to XML formats.

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.text_docbook.Formatter, and MoinMoin.formatter.text_xml.Formatter.

Definition at line 362 of file __init__.py.

00362 
00363     def rawHTML(self, markup):
00364         """ This allows emitting pre-formatted HTML markup, and should be
00365             used wisely (i.e. very seldom).
00366 
00367             Using this event while generating content results in unwanted
00368             effects, like loss of markup or insertion of CDATA sections
00369             when output goes to XML formats.
00370         """
00371 
00372         import formatter, htmllib
00373         from MoinMoin.util import simpleIO
00374 
00375         # Regenerate plain text
00376         f = simpleIO()
00377         h = htmllib.HTMLParser(formatter.AbstractFormatter(formatter.DumbWriter(f)))
00378         h.feed(markup)
00379         h.close()
00380 
00381         return self.text(f.getvalue())

Here is the call graph for this function:

def MoinMoin.formatter.FormatterBase.rule (   self,
  size = 0,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.sanitize_to_id (   self,
  text 
) [inherited]
Take 'text' and return something that is a valid ID
for this formatter.
The default returns the first non-space character of the string.

Because of the way this is used, it must be idempotent,
i.e. calling it on an already sanitized id must yield the
original id.

Reimplemented in MoinMoin.formatter.text_html.Formatter.

Definition at line 394 of file __init__.py.

00394 
00395     def sanitize_to_id(self, text):
00396         '''
00397         Take 'text' and return something that is a valid ID
00398         for this formatter.
00399         The default returns the first non-space character of the string.
00400 
00401         Because of the way this is used, it must be idempotent,
00402         i.e. calling it on an already sanitized id must yield the
00403         original id.
00404         '''
00405         return text.strip()[:1]

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.set_highlight_re (   self,
  hi_re = None 
) [inherited]
set the highlighting regular expression (e.g. for search terms)

@param hi_re: either a valid re as str/unicode (you may want to use
      re.escape before passing generic strings!) or a compiled
      re object. raises re.error for invalid re.

Definition at line 43 of file __init__.py.

00043 
00044     def set_highlight_re(self, hi_re=None):
00045         """ set the highlighting regular expression (e.g. for search terms)
00046 
00047         @param hi_re: either a valid re as str/unicode (you may want to use
00048                       re.escape before passing generic strings!) or a compiled
00049                       re object. raises re.error for invalid re.
00050         """
00051         if isinstance(hi_re, (str, unicode)):
00052             hi_re = re.compile(hi_re, re.U + re.IGNORECASE)
00053         self._highlight_re = hi_re

def MoinMoin.formatter.FormatterBase.setPage (   self,
  page 
) [inherited]

Reimplemented in MoinMoin.formatter.dom_xml.Formatter.

Definition at line 57 of file __init__.py.

00057 
00058     def setPage(self, page):
00059         self.page = page

def MoinMoin.formatter.FormatterBase.small (   self,
  on,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.smiley (   self,
  text 
) [inherited]

Reimplemented in MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.dom_xml.Formatter, and MoinMoin.formatter.text_plain.Formatter.

Definition at line 181 of file __init__.py.

00181 
00182     def smiley(self, text):
00183         return text

def MoinMoin.formatter.FormatterBase.span (   self,
  on,
  kw 
) [inherited]
open/close a inline span 

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.text_docbook.Formatter, and MoinMoin.formatter.text_gedit.Formatter.

Definition at line 358 of file __init__.py.

00358 
00359     def span(self, on, **kw):
00360         """ open/close a inline span """
00361         return ""

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.startContent (   self,
  content_id = "content",
  kw 
) [inherited]

Reimplemented in MoinMoin.formatter.text_docbook.Formatter, and MoinMoin.macro.TableOfContents.TOCFormatter.

Definition at line 75 of file __init__.py.

00075 
00076     def startContent(self, content_id="content", **kw):
00077         if self.page:
00078             self.request.uid_generator.begin(self.page.page_name)
00079         return ""

def MoinMoin.formatter.FormatterBase.startDocument (   self,
  pagename 
) [inherited]

Reimplemented in MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.text_xml.Formatter, and MoinMoin.formatter.text_plain.Formatter.

Definition at line 69 of file __init__.py.

00069 
00070     def startDocument(self, pagename):
00071         return ""

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.strike (   self,
  on,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.strong (   self,
  on,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.sub (   self,
  on,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.sup (   self,
  on,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.sysmsg (   self,
  on,
  kw 
) [inherited]
Emit a system message (embed it into the page).

    Normally used to indicate disabled options, or invalid markup.

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_xml.Formatter, and MoinMoin.formatter.text_plain.Formatter.

Definition at line 60 of file __init__.py.

00060 
00061     def sysmsg(self, on, **kw):
00062         """ Emit a system message (embed it into the page).
00063 
00064             Normally used to indicate disabled options, or invalid markup.
00065         """
00066         return ""

def MoinMoin.formatter.FormatterBase.table (   self,
  on,
  attrs = {},
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.table_cell (   self,
  on,
  attrs = {},
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.table_row (   self,
  on,
  attrs = {},
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.text (   self,
  text,
  kw 
) [inherited]

Reimplemented in MoinMoin.formatter.text_html.Formatter, MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.text_plain.Formatter, MoinMoin.formatter.text_xml.Formatter, and MoinMoin.formatter.groups.Formatter.

Definition at line 189 of file __init__.py.

00189 
00190     def text(self, text, **kw):
00191         if not self._highlight_re:
00192             return self._text(text)
00193 
00194         result = []
00195         lastpos = 0
00196         match = self._highlight_re.search(text)
00197         while match and lastpos < len(text):
00198             # add the match we found
00199             result.append(self._text(text[lastpos:match.start()]))
00200             result.append(self.highlight(1))
00201             result.append(self._text(match.group(0)))
00202             result.append(self.highlight(0))
00203 
00204             # search for the next one
00205             lastpos = match.end() + (match.end() == lastpos)
00206             match = self._highlight_re.search(text, lastpos)
00207 
00208         result.append(self._text(text[lastpos:]))
00209         return ''.join(result)

Here is the call graph for this function:

Here is the caller graph for this function:

def MoinMoin.formatter.FormatterBase.transclusion (   self,
  on,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.transclusion_param (   self,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.underline (   self,
  on,
  kw 
) [inherited]
def MoinMoin.formatter.FormatterBase.url (   self,
  on,
  url = None,
  css = None,
  kw 
) [inherited]

Reimplemented in MoinMoin.formatter.text_docbook.Formatter, MoinMoin.formatter.dom_xml.Formatter, MoinMoin.formatter.text_xml.Formatter, and MoinMoin.formatter.text_plain.Formatter.

Definition at line 111 of file __init__.py.

00111 
00112     def url(self, on, url=None, css=None, **kw):
00113         raise NotImplementedError

Here is the caller graph for this function:


Member Data Documentation

MoinMoin.formatter.pagelinks.Formatter.code = preformattedsmallbigcode_areacode_linenull [static]

Definition at line 25 of file pagelinks.py.

MoinMoin.formatter.pagelinks.Formatter.code_token = linebreakparagraphruleiconnull [static]

Definition at line 26 of file pagelinks.py.

MoinMoin.formatter.pagelinks.Formatter.definition_term = definition_descheadingtablenull [static]

Definition at line 28 of file pagelinks.py.

string MoinMoin.formatter.FormatterBase.hardspace = ' ' [static, inherited]

Definition at line 38 of file __init__.py.

MoinMoin.formatter.pagelinks.Formatter.number_list = bullet_listlistitemdefinition_listnull [static]

Definition at line 27 of file pagelinks.py.

Reimplemented in MoinMoin.formatter.dom_xml.Formatter.

Definition at line 58 of file __init__.py.

Definition at line 37 of file __init__.py.

MoinMoin.formatter.pagelinks.Formatter.set_highlight_re = rawHTMLurlimagesmileytextnull [static]

Definition at line 23 of file pagelinks.py.

MoinMoin.formatter.pagelinks.Formatter.strong = emphasisunderlinehighlightsupsubstrikenull [static]

Definition at line 24 of file pagelinks.py.

MoinMoin.formatter.pagelinks.Formatter.table_row = table_cellattachment_linkattachment_imageattachment_drawingnull [static]

Definition at line 29 of file pagelinks.py.

MoinMoin.formatter.pagelinks.Formatter.transclusion = transclusion_paramnull [static]

Definition at line 30 of file pagelinks.py.


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