annotate MoinMoin/formatter/pagelinks.py @ 6106:b59ee217581c

remove MoinMoin.support.HeaderFixed assuming it is fixed in 2.7. no idea what the problem was, comments unhelpful.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 06 Sep 2016 01:52:01 +0200
parents a9e7ad80340e
children
rev   line source
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1 # -*- coding: iso-8859-1 -*-
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
2 """
407
bea43f99cc27 star-merged moin--refactor--1.5 (formatter, parser, converter fixes, see docs/CHANGES.refactor)
Thomas Waldmann <tw@waldmann-edv.de>
parents: 217
diff changeset
3 MoinMoin - pagelinks Formatter
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
4
407
bea43f99cc27 star-merged moin--refactor--1.5 (formatter, parser, converter fixes, see docs/CHANGES.refactor)
Thomas Waldmann <tw@waldmann-edv.de>
parents: 217
diff changeset
5 @copyright: 2005 Nir Soffer <nirs@freeshell.org>
bea43f99cc27 star-merged moin--refactor--1.5 (formatter, parser, converter fixes, see docs/CHANGES.refactor)
Thomas Waldmann <tw@waldmann-edv.de>
parents: 217
diff changeset
6 @license: GNU GPL, see COPYING for details.
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
7 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
8
661
19ef5f9fff84 moved formatter.base to formatter.__init__
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 444
diff changeset
9 from MoinMoin.formatter import FormatterBase
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
10
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
11 class Formatter(FormatterBase):
999
97ce857bdebf whitespace-only cleanup and minor style changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 661
diff changeset
12 """ Collect pagelinks and format nothing :-) """
97ce857bdebf whitespace-only cleanup and minor style changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 661
diff changeset
13
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
14 def pagelink(self, on, pagename='', page=None, **kw):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
15 FormatterBase.pagelink(self, on, pagename, page, **kw)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
16 return self.null()
999
97ce857bdebf whitespace-only cleanup and minor style changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 661
diff changeset
17
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
18 def null(self, *args, **kw):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
19 return ''
999
97ce857bdebf whitespace-only cleanup and minor style changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 661
diff changeset
20
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
21 # All these must be overriden here because they raise
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
22 # NotImplementedError!@#! or return html?! in the base class.
444
918c58dcc275 Fixed PythonErrorEditingFrontPage.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents: 407
diff changeset
23 set_highlight_re = rawHTML = url = image = smiley = text = null
999
97ce857bdebf whitespace-only cleanup and minor style changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 661
diff changeset
24 strong = emphasis = underline = highlight = sup = sub = strike = null
444
918c58dcc275 Fixed PythonErrorEditingFrontPage.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents: 407
diff changeset
25 code = preformatted = small = big = code_area = code_line = null
918c58dcc275 Fixed PythonErrorEditingFrontPage.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents: 407
diff changeset
26 code_token = linebreak = paragraph = rule = icon = null
918c58dcc275 Fixed PythonErrorEditingFrontPage.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents: 407
diff changeset
27 number_list = bullet_list = listitem = definition_list = null
918c58dcc275 Fixed PythonErrorEditingFrontPage.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents: 407
diff changeset
28 definition_term = definition_desc = heading = table = null
918c58dcc275 Fixed PythonErrorEditingFrontPage.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents: 407
diff changeset
29 table_row = table_cell = attachment_link = attachment_image = attachment_drawing = null
2713
ddb2d19684d7 add transclusion / transclusion_param formatter methods (for html: <object> / <param>)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 999
diff changeset
30 transclusion = transclusion_param = null
5872
a9e7ad80340e special formatters: avoid to create unnecessary output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2713
diff changeset
31 macro = lang = anchordef = span = line_anchordef = sysmsg = null
a9e7ad80340e special formatters: avoid to create unnecessary output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2713
diff changeset
32 startContent = escapedText = line_anchorlink = null
a9e7ad80340e special formatters: avoid to create unnecessary output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2713
diff changeset
33 div = endContent = anchorlink = interwikilink = null
407
bea43f99cc27 star-merged moin--refactor--1.5 (formatter, parser, converter fixes, see docs/CHANGES.refactor)
Thomas Waldmann <tw@waldmann-edv.de>
parents: 217
diff changeset
34