Back to index

moin  1.9.0~rc2
pagelinks.py
Go to the documentation of this file.
00001 # -*- coding: iso-8859-1 -*-
00002 """
00003     MoinMoin - pagelinks Formatter
00004 
00005     @copyright: 2005 Nir Soffer <nirs@freeshell.org>
00006     @license: GNU GPL, see COPYING for details.
00007 """
00008 
00009 from MoinMoin.formatter import FormatterBase
00010 
00011 class Formatter(FormatterBase):
00012     """ Collect pagelinks and format nothing :-) """
00013 
00014     def pagelink(self, on, pagename='', page=None, **kw):
00015         FormatterBase.pagelink(self, on, pagename, page, **kw)
00016         return self.null()
00017 
00018     def null(self, *args, **kw):
00019         return ''
00020 
00021     # All these must be overriden here because they raise
00022     # NotImplementedError!@#! or return html?! in the base class.
00023     set_highlight_re = rawHTML = url = image = smiley = text = null
00024     strong = emphasis = underline = highlight = sup = sub = strike = null
00025     code = preformatted = small = big = code_area = code_line = null
00026     code_token = linebreak = paragraph = rule = icon = null
00027     number_list = bullet_list = listitem = definition_list = null
00028     definition_term = definition_desc = heading = table = null
00029     table_row = table_cell = attachment_link = attachment_image = attachment_drawing = null
00030     transclusion = transclusion_param = null
00031