M Dockerfile => Dockerfile +3 -0
@@ 8,6 8,9 @@ COPY build/moin-1.9.11/setup.py /var/moin/install
COPY build/moin-1.9.11/wiki /var/moin/wiki
COPY moinmoin/* /var/moin/wiki/
+# rhtml plugin
+#COPY rhtml/rhtml.py /var/moin/wiki/data/plugin/parser/rhtml.py
+
RUN find /var/moin -type d -exec chmod 775 {} \; \
&& find /var/moin -type f -exec chmod 664 {} \; \
&& chown www-data:www-data /var/moin -R
A rhtml/rhtml.py => rhtml/rhtml.py +24 -0
@@ 0,0 1,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))
+