From 680a15650d655301b80f36d63182fe1837f16db3 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 6 Jun 2008 23:33:45 +0200 Subject: [PATCH] * Add plugin dir (only empty subdirs for now). --- plugin/__init__.py | 4 ++ plugin/__init__.pyc | Bin 0 -> 148 bytes plugin/action/__init__.py | 5 ++ plugin/action/__init__.pyc | Bin 0 -> 293 bytes plugin/converter/__init__.py | 5 ++ plugin/filter/__init__.py | 5 ++ plugin/formatter/__init__.py | 5 ++ plugin/macro/__init__.py | 5 ++ plugin/macro/__init__.pyc | Bin 0 -> 292 bytes plugin/parser/__init__.py | 5 ++ plugin/parser/__init__.pyc | Bin 0 -> 293 bytes plugin/theme/.exodus.py.swp | Bin 0 -> 12288 bytes plugin/theme/__init__.py | 5 ++ plugin/theme/__init__.pyc | Bin 0 -> 292 bytes plugin/theme/exodus.py | 115 +++++++++++++++++++++++++++++++++++ plugin/xmlrpc/__init__.py | 5 ++ 16 files changed, 159 insertions(+) create mode 100644 plugin/__init__.py create mode 100644 plugin/__init__.pyc create mode 100644 plugin/action/__init__.py create mode 100644 plugin/action/__init__.pyc create mode 100644 plugin/converter/__init__.py create mode 100644 plugin/filter/__init__.py create mode 100644 plugin/formatter/__init__.py create mode 100644 plugin/macro/__init__.py create mode 100644 plugin/macro/__init__.pyc create mode 100644 plugin/parser/__init__.py create mode 100644 plugin/parser/__init__.pyc create mode 100644 plugin/theme/.exodus.py.swp create mode 100644 plugin/theme/__init__.py create mode 100644 plugin/theme/__init__.pyc create mode 100644 plugin/theme/exodus.py create mode 100644 plugin/xmlrpc/__init__.py 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 0000000000000000000000000000000000000000..6acb93b3471cd58bdc2338ae7a044f6b1f7d4fa4 GIT binary patch literal 148 zcmd1(#LKnG$);`YDMeiTb(unRy_rpIVWhQd+EEkW-ot9(A_o8f literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..5f3f8d7639c1cfdba72cb5b4991e6cbfd2b19013 GIT binary patch literal 293 zcmY+9O-{ow6ojACB7USSxB<&-h>rkb1wuur?ATaV@)}unY^#1r=$adGG)};nvcb}P z_ShqjJ$~0$Uk^`@9sP|8^F5SrfSzbittsh7mG~u)j(JKc z9^|DtgOwWCL>G$MNt~B|DY?e^!18Lly&ZTH`^j^b3+x)RbDoWnbC~gT@LRSmW!p8- zKqtsER(iGvy)297IeK)(aLY3X$!+kuw_^2(R}^Xfz=c^SKMioUD`9Pn3r>t_(@{#t L-3rL%e|7Z(($Gd| literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..b6930f6dadf3c02c7a1555d791f47dbfc8eed907 GIT binary patch literal 292 zcmY+9O-{ow5QWES5kFEE+<;{^#76+J0;Hme4tta4_vcb~( z#?LeIv-?wd^ZoSl+|b`DP#>Xm2ed>7BCqH}kzz%zAYRcI{F+)t?^T|zR35(uhGUwB zA&&A^UBF5SY@!QU^(4;AzbUyzzhl|j=3qPC#CGzW9kW>e+TPs%gctw`xPh6Pv;HM6*x6K%}F)lbUrXG%x MBOX>j%HJ!CABB-c`v3p{ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..ba6f420204e17f572126882cd6e439e7882a4bea GIT binary patch literal 293 zcmY+9O-{ow5QWES5kFEE+<;{^#76+J0-+*Qc5E!GnMPI}+lnU%U2`I?#tC?)Y_Rmc z@$-!Q?BTn<`g(YJ+|l2vQ179919U_OBCqIOkzz%zB3{ua{F*vNZ%vtQR2jbn(lJjd z#Zg|GGgzsCO?08Coy2+hHzn8T_bjh=cd$KgVmEota)DE0_Rh00atSb9p&(R|*hFhLFNN$7IofWGGyrM|+2QJJy`KgCXcFa6#V_a}zOq-5U MGVWGDF8`~mAJe!-b^rhX literal 0 HcmV?d00001 diff --git a/plugin/theme/.exodus.py.swp b/plugin/theme/.exodus.py.swp new file mode 100644 index 0000000000000000000000000000000000000000..c997303cd5817fe55de28f10d7eaebcf731c24ff GIT binary patch literal 12288 zcmeI2UyKt)9LEPmPyr!mq9())ZKOSNZSM{dtUwAz4-z>q;f_B6z3g?T?H;>3b!N7u zL45O#@Zzf&A0#}QXnf&86VUMFqkkSW1~t(bdG zsOCCy4}*IE=r8)~5^%DIRlq7>6|f3e1*`&A0jq#jz$#!BunJfOtOECm0**__7x?o3 z;d%@R|Nqy21NeC>AwPm!;3l{X&Vke56qo{&;A!v_SPvcqzdVLI;0AaXTm)ypac}@U z34Yi@$oJqjxCSl*AIyMVU?ccrGa+At8{jJFfW2S`xVMRr-@vcnBM<=vPJ=R-0NcP; z@cW~Ld4-xVg_y)WOu7D5( zzy~M649J0Jz@M1EJK#3>99#o>PTvRiunPPi6`+)Ke<&49MIxkg`cT#1X6<1&;lF0ragEUMFFWqKU17MTX(yG=(p0U9=Kl_}mb>V8;W89it}D4k{@ z6OLlk3Ei$cj;j?IE~`;?fmI{b_qB{E(9P&08BCNr7v_pf@G9R>fgcYiE zcM#xN@MY*d4)KPszNSX4IxdM+_O! zJ36PHdoU9_ni+H?OJ6a=Tj}-MWtkjs2eJs3q6*E2Tw#K$JP26mGI!@#T9=_a3(4~X zjT(3KTzFxP=k>)vfh>I)!NY4*+j`TaXM-N3XL~oa6*t_oIenGuhe9{j^^8@z@oq{d z^J^wnTlG;9aok6tSLJTMze+NHv{)>b0Wqa@g*YYLGWzovEBvT zp@*ep!J^M-+dJ$431Y8IoQ~6#p@V#&$?z395Qn64gqnpogHw>DC$y=j zF-iI`r?rGjgE{WVEQ*cGvuG$@2Et{vyb5G}C=-l}%2PfYGA&Dz*pHMXIcmJ`ORI;y z_ED!N$?%|wQ4_z0B6oCvCatV3K>u?bCcV|TpnA>W!nkbKW%Dt%uL#Wcm<`F|s0G@@ zP+Gh$3rf8X`CiB}hYmCZm8#>jgBjP8P2cI1LmsjhVM*I$vSeLacpyMN4b2yH)wT>gcsG9(0<+kz^voLORrn=|nO|R2zuV zAl>fsIv-r$mgybGuw4X_#b|gliUsOr{%Sd|CkZ=lCVufegD-5pBW3cqX`UI6IFjiV zq9%A?o+S0tWHEmH^MWSFp3^HwNOv8q_+FKT5)Yr#GxKzM_SJDL$Be%8+U%KQGt<}~ zvB5Hhz?JbXT&ePAM|kyyD$}Wni9H4U+Dm6VK~L~njfrt|!UIRrQ;zQjP8h~Zz4k>z m3pBt^j|XMrm~kUZ3%d&x4**_RFH=wQ!v6hxUnorK+vFb$oq^5( literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..b8398b9523cefab48b420b1388fd3bdc05b4f98f GIT binary patch literal 292 zcmY+9K~BRk5Jksn5fmv4Zoo1d;v-P80;D2Tc5E!G8G=>Ew(3bj*W8GsaRR<68!Y`d z{+^M)J$%=fUw04pJNjD{>Ke+|Ku5GE@`_#+DOThv;st%eFR4@X(v;~&mGKpjj(JQe z9^|PxgOwWCL>G$MQJj~5Q*woV&+=?{d)xCScBAJk7dSQM&3QIP&S8dA<2P(u!nRAG zfliP|?DS+0dY)&^Q}oD+;f5y;lH1^QXT|CPuPD;|feW)ve(d4ood?#&xZuQ?HXWrz L+%AAzzE@X2h2KT| literal 0 HcmV?d00001 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__) -- 2.30.2