From: Matthijs Kooijman Date: Fri, 6 Jun 2008 21:33:45 +0000 (+0200) Subject: * Add plugin dir (only empty subdirs for now). X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fwipi.git;a=commitdiff_plain;h=680a15650d655301b80f36d63182fe1837f16db3 * Add plugin dir (only empty subdirs for now). --- diff --git a/plugin/__init__.py b/plugin/__init__.py new file mode 100644 index 0000000..f2d8200 --- /dev/null +++ b/plugin/__init__.py @@ -0,0 +1,4 @@ +# *** Do not remove this! *** +# Although being empty, the presence of this file is important for plugins +# working correctly. + diff --git a/plugin/__init__.pyc b/plugin/__init__.pyc new file mode 100644 index 0000000..6acb93b Binary files /dev/null and b/plugin/__init__.pyc differ diff --git a/plugin/action/__init__.py b/plugin/action/__init__.py new file mode 100644 index 0000000..e4ed3b6 --- /dev/null +++ b/plugin/action/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: iso-8859-1 -*- + +from MoinMoin.util import pysupport + +modules = pysupport.getPackageModules(__file__) diff --git a/plugin/action/__init__.pyc b/plugin/action/__init__.pyc new file mode 100644 index 0000000..5f3f8d7 Binary files /dev/null and b/plugin/action/__init__.pyc differ diff --git a/plugin/converter/__init__.py b/plugin/converter/__init__.py new file mode 100644 index 0000000..e4ed3b6 --- /dev/null +++ b/plugin/converter/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: iso-8859-1 -*- + +from MoinMoin.util import pysupport + +modules = pysupport.getPackageModules(__file__) diff --git a/plugin/filter/__init__.py b/plugin/filter/__init__.py new file mode 100644 index 0000000..e4ed3b6 --- /dev/null +++ b/plugin/filter/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: iso-8859-1 -*- + +from MoinMoin.util import pysupport + +modules = pysupport.getPackageModules(__file__) diff --git a/plugin/formatter/__init__.py b/plugin/formatter/__init__.py new file mode 100644 index 0000000..e4ed3b6 --- /dev/null +++ b/plugin/formatter/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: iso-8859-1 -*- + +from MoinMoin.util import pysupport + +modules = pysupport.getPackageModules(__file__) diff --git a/plugin/macro/__init__.py b/plugin/macro/__init__.py new file mode 100644 index 0000000..e4ed3b6 --- /dev/null +++ b/plugin/macro/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: iso-8859-1 -*- + +from MoinMoin.util import pysupport + +modules = pysupport.getPackageModules(__file__) diff --git a/plugin/macro/__init__.pyc b/plugin/macro/__init__.pyc new file mode 100644 index 0000000..b6930f6 Binary files /dev/null and b/plugin/macro/__init__.pyc differ diff --git a/plugin/parser/__init__.py b/plugin/parser/__init__.py new file mode 100644 index 0000000..e4ed3b6 --- /dev/null +++ b/plugin/parser/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: iso-8859-1 -*- + +from MoinMoin.util import pysupport + +modules = pysupport.getPackageModules(__file__) diff --git a/plugin/parser/__init__.pyc b/plugin/parser/__init__.pyc new file mode 100644 index 0000000..ba6f420 Binary files /dev/null and b/plugin/parser/__init__.pyc differ diff --git a/plugin/theme/.exodus.py.swp b/plugin/theme/.exodus.py.swp new file mode 100644 index 0000000..c997303 Binary files /dev/null and b/plugin/theme/.exodus.py.swp differ diff --git a/plugin/theme/__init__.py b/plugin/theme/__init__.py new file mode 100644 index 0000000..e4ed3b6 --- /dev/null +++ b/plugin/theme/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: iso-8859-1 -*- + +from MoinMoin.util import pysupport + +modules = pysupport.getPackageModules(__file__) diff --git a/plugin/theme/__init__.pyc b/plugin/theme/__init__.pyc new file mode 100644 index 0000000..b8398b9 Binary files /dev/null and b/plugin/theme/__init__.pyc differ diff --git a/plugin/theme/exodus.py b/plugin/theme/exodus.py new file mode 100644 index 0000000..1dbe5a5 --- /dev/null +++ b/plugin/theme/exodus.py @@ -0,0 +1,115 @@ +# -*- coding: iso-8859-1 -*- +""" + MoinMoin - modern theme + + @copyright: 2003-2005 Nir Soffer, Thomas Waldmann + @license: GNU GPL, see COPYING for details. +""" + +from MoinMoin.theme import ThemeBase + +class Theme(ThemeBase): + + name = "exodus" + + def header(self, d, **kw): + """ Assemble wiki header + + @param d: parameter dictionary + @rtype: unicode + @return: page header html + """ + html = [ + # Pre header custom html + self.emit_custom_html(self.cfg.page_header1), + + # Header + u'', + + # Post header custom html (not recommended) + self.emit_custom_html(self.cfg.page_header2), + + # Start of page + self.startPage(), + ] + return u'\n'.join(html) + + def editorheader(self, d, **kw): + """ Assemble wiki header for editor + + @param d: parameter dictionary + @rtype: unicode + @return: page header html + """ + html = [ + # Pre header custom html + self.emit_custom_html(self.cfg.page_header1), + + # Header + u'', + + # Post header custom html (not recommended) + self.emit_custom_html(self.cfg.page_header2), + + # Start of page + self.startPage(), + ] + return u'\n'.join(html) + + def footer(self, d, **keywords): + """ Assemble wiki footer + + @param d: parameter dictionary + @keyword ...:... + @rtype: unicode + @return: page footer html + """ + page = d['page'] + html = [ + # End of page + self.pageinfo(page), + self.endPage(), + + # Pre footer custom html (not recommended!) + self.emit_custom_html(self.cfg.page_footer1), + + # Footer + u'', + + # Post footer custom html + self.emit_custom_html(self.cfg.page_footer2), + ] + return u'\n'.join(html) + + +def execute(request): + """ + Generate and return a theme object + + @param request: the request object + @rtype: MoinTheme + @return: Theme object + """ + return Theme(request) + diff --git a/plugin/xmlrpc/__init__.py b/plugin/xmlrpc/__init__.py new file mode 100644 index 0000000..e4ed3b6 --- /dev/null +++ b/plugin/xmlrpc/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: iso-8859-1 -*- + +from MoinMoin.util import pysupport + +modules = pysupport.getPackageModules(__file__)