~dricottone/docker-moinmoin19

ref: 753045b1d04b5392334ec1a28788e82d2ff2c765 docker-moinmoin19/rhtml/rhtml.py -rw-r--r-- 488 bytes
753045b1Dominic Ricottone added BSD license 4 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))