~dricottone/docker-moinmoin19

docker-moinmoin19/rhtml/rhtml.py -rw-r--r-- 488 bytes
d09397e5Dominic Ricottone Minor cleanup 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- coding: iso-8859-1 -*-
"""
  MoinMoin - Raw HTML Parser

  @copyright: 2010 by Chris Martino <chris@console.org>
  @license: GNU GPL.
"""

from MoinMoin.parser._ParserBase import ParserBase

Dependencies = ['user']

class Parser(ParserBase):

    parsername = "RawHTML"
    Dependencies = []

    def __init__(self, raw, request, **kw):
        self.raw = raw
        self.request = request

    def format(self, formatter):
        self.request.write(formatter.rawHTML(self.raw))