* Add plugin dir (only empty subdirs for now).
authorMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Fri, 6 Jun 2008 21:33:45 +0000 (23:33 +0200)
committerMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Fri, 6 Jun 2008 21:33:45 +0000 (23:33 +0200)
16 files changed:
plugin/__init__.py [new file with mode: 0644]
plugin/__init__.pyc [new file with mode: 0644]
plugin/action/__init__.py [new file with mode: 0644]
plugin/action/__init__.pyc [new file with mode: 0644]
plugin/converter/__init__.py [new file with mode: 0644]
plugin/filter/__init__.py [new file with mode: 0644]
plugin/formatter/__init__.py [new file with mode: 0644]
plugin/macro/__init__.py [new file with mode: 0644]
plugin/macro/__init__.pyc [new file with mode: 0644]
plugin/parser/__init__.py [new file with mode: 0644]
plugin/parser/__init__.pyc [new file with mode: 0644]
plugin/theme/.exodus.py.swp [new file with mode: 0644]
plugin/theme/__init__.py [new file with mode: 0644]
plugin/theme/__init__.pyc [new file with mode: 0644]
plugin/theme/exodus.py [new file with mode: 0644]
plugin/xmlrpc/__init__.py [new file with mode: 0644]

diff --git a/plugin/__init__.py b/plugin/__init__.py
new file mode 100644 (file)
index 0000000..f2d8200
--- /dev/null
@@ -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 (file)
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 (file)
index 0000000..e4ed3b6
--- /dev/null
@@ -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 (file)
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 (file)
index 0000000..e4ed3b6
--- /dev/null
@@ -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 (file)
index 0000000..e4ed3b6
--- /dev/null
@@ -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 (file)
index 0000000..e4ed3b6
--- /dev/null
@@ -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 (file)
index 0000000..e4ed3b6
--- /dev/null
@@ -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 (file)
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 (file)
index 0000000..e4ed3b6
--- /dev/null
@@ -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 (file)
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 (file)
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 (file)
index 0000000..e4ed3b6
--- /dev/null
@@ -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 (file)
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 (file)
index 0000000..1dbe5a5
--- /dev/null
@@ -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'<div id="header">',
+            self.logo(),
+            self.searchform(d),
+            self.username(d),
+            u'<div id="locationline">',
+            self.interwiki(d),
+            self.title(d),
+            u'</div>',
+            self.trail(d),
+            self.navibar(d),
+            #u'<hr id="pageline">',
+            u'<div id="pageline"><hr style="display:none;"></div>',
+            self.msg(d),
+            self.editbar(d),
+            u'</div>',
+
+            # 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'<div id="header">',
+            self.title(d),
+            self.msg(d),
+            u'</div>',
+
+            # 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'<div id="footer">',
+            self.editbar(d),
+            self.credits(d),
+            self.showversion(d, **keywords),
+            u'</div>',
+
+            # 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 (file)
index 0000000..e4ed3b6
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- coding: iso-8859-1 -*-
+
+from MoinMoin.util import pysupport
+
+modules = pysupport.getPackageModules(__file__)