~dricottone/container-images

ref: 86834e13c4e225b499700ba57267b6d8caa418ac container-images/moin/rhtml/rhtml.py -rw-r--r-- 488 bytes
86834e13Dominic Ricottone MoinMoin 1.9 running in PyPy 23 hours 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))