[wiki-lenny] Débuggage du portail (les liens sont parsés après) + pimpage

darcs-hash:20081211174112-bd074-5d5f6992aae94438a7333d53f2b55a5e00cbbc17.gz
This commit is contained in:
Antoine Durand-Gasselin 2008-12-11 18:41:12 +01:00
parent 4b169a49e9
commit 7e755aa879
4 changed files with 83 additions and 10 deletions

View file

@ -0,0 +1,33 @@
# -*- coding: iso-8859-1 -*-
"""
MoinMoin - pagelinks Formatter
@copyright: 2005 Nir Soffer <nirs@freeshell.org>
@license: GNU GPL, see COPYING for details.
"""
from MoinMoin.formatter import FormatterBase
class Formatter(FormatterBase):
""" Collect pagelinks and format nothing :-) """
def pagelink(self, on, pagename='', page=None, **kw):
FormatterBase.pagelink(self, on, pagename, page, **kw)
return self.null()
def null(self, *args, **kw):
return ''
# All these must be overriden here because they raise
# NotImplementedError!@#! or return html?! in the base class.
set_highlight_re = rawHTML = url = image = smiley = text = null
strong = emphasis = underline = highlight = sup = sub = strike = null
code = preformatted = small = big = code_area = code_line = null
code_token = linebreak = paragraph = rule = icon = null
number_list = bullet_list = listitem = definition_list = null
definition_term = definition_desc = heading = table = null
table_row = table_cell = attachment_link = attachment_image = attachment_drawing = null
transclusion = transclusion_param = null
### HACK SAUVAGE 1/1
crans_box = crans_portal = null
### FIN HACK 1/1