changeset 0:7c87f9ee3ac4

Initial import
author Radomir Dopieralski <devel@sheep.art.pl>
date Wed, 04 Jun 2008 20:23:44 +0200
parents
children 457303368586
files mfact.py mfact/css/common.css mfact/css/msie.css mfact/css/print.css mfact/css/screen.css mfact/img/PythonPowered.png mfact/img/admon-caution.png mfact/img/admon-important.png mfact/img/admon-note.png mfact/img/admon-tip.png mfact/img/admon-warning.png mfact/img/alert.png mfact/img/angry.png mfact/img/attach.png mfact/img/attention.png mfact/img/biggrin.png mfact/img/checkmark.png mfact/img/devil.png mfact/img/draft.png mfact/img/frown.png mfact/img/icon-error.png mfact/img/icon-info.png mfact/img/idea.png mfact/img/moin-attach.png mfact/img/moin-bottom.png mfact/img/moin-conflict.png mfact/img/moin-deleted.png mfact/img/moin-diff.png mfact/img/moin-download.png mfact/img/moin-edit.png mfact/img/moin-email.png mfact/img/moin-ftp.png mfact/img/moin-help.png mfact/img/moin-home.png mfact/img/moin-icon.png mfact/img/moin-info.png mfact/img/moin-inter.png mfact/img/moin-jabber.png mfact/img/moin-new.png mfact/img/moin-news.png mfact/img/moin-parent.png mfact/img/moin-print.png mfact/img/moin-raw.png mfact/img/moin-readonly.png mfact/img/moin-renamed.png mfact/img/moin-rss.png mfact/img/moin-search.png mfact/img/moin-show.png mfact/img/moin-subscribe.png mfact/img/moin-telnet.png mfact/img/moin-top.png mfact/img/moin-unsubscribe.png mfact/img/moin-up.png mfact/img/moin-updated.png mfact/img/moin-www.png mfact/img/ohwell.png mfact/img/prio1.png mfact/img/prio2.png mfact/img/prio3.png mfact/img/redface.png mfact/img/sad.png mfact/img/smile.png mfact/img/smile2.png mfact/img/smile3.png mfact/img/smile4.png mfact/img/star_off.png mfact/img/star_on.png mfact/img/thumbs-up.png mfact/img/tired.png mfact/img/tongue.png
diffstat 69 files changed, 608 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mfact.py	Wed Jun 04 20:23:44 2008 +0200
@@ -0,0 +1,93 @@
+# -*- coding: iso-8859-1 -*-
+"""
+    MoinMoin - mfact theme
+
+    @copyright: 2007 Radomir Dopieralski
+    @license: GNU GPL, see COPYING for details.
+"""
+
+from MoinMoin.theme import ThemeBase
+
+
+class Theme(ThemeBase):
+    name = "mfact"
+
+    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.searchform(d),
+            self.logo(),
+            self.navibar(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.endPage(),
+            # Pre footer custom html (not recommended!)
+            self.emit_custom_html(self.cfg.page_footer1),
+            # Footer
+            u'<div id="footer">',
+            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)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mfact/css/common.css	Wed Jun 04 20:23:44 2008 +0200
@@ -0,0 +1,460 @@
+/*  common.css - MoinMoin Default Styles
+
+Copyright (c) 2001, 2002, 2003 by Juergen Hermann
+*/
+
+/* content styles */
+
+html {
+	background-color: white;
+	color: black;
+	font-family: Arial, Lucida Grande, sans-serif;
+	font-size: 1em;
+}
+
+body {
+	margin: 0;
+}
+
+/* Links */
+
+a {color: #0044B3;}
+a:visited {color: #597BB3;}
+a.nonexistent, a.badinterwiki {color: gray;}
+
+a.www:before {content: url(../img/moin-www.png); margin: 0 0.2em;}
+a.http:before {content: url(../img/moin-www.png); margin: 0 0.2em;}
+a.https:before {content: url(../img/moin-www.png); margin: 0 0.2em;}
+a.file:before {content: url(../img/moin-ftp.png); margin: 0 0.2em;}
+a.ftp:before {content: url(../img/moin-ftp.png); margin: 0 0.2em;}
+a.nntp:before {content: url(../img/moin-news.png); margin: 0 0.2em;}
+a.news:before {content: url(../img/moin-news.png); margin: 0 0.2em;}
+a.telnet:before {content: url(../img/moin-telnet.png); margin: 0 0.2em;}
+a.irc:before,a.ircs:before  {content: url(../img/moin-telnet.png); margin: 0 0.2em;}
+a.mailto:before {content: url(../img/moin-email.png); margin: 0 0.2em;}
+a.attachment:before {content: url(../img/moin-attach.png); margin: 0 0.2em;}
+a.badinterwiki:before {content: url(../img/moin-inter.png); margin: 0 0.2em;}
+a.interwiki:before {content: url(../img/moin-inter.png); margin: 0 0.2em;}
+
+li p {
+	margin: .25em 0;
+}
+
+li.gap {
+    margin-top: 0.5em;
+}
+
+dt {
+    margin-top: 0.5em;
+    font-weight: bold;
+}
+
+dd {
+    margin-top: 0;
+    margin-bottom: 0;
+}
+
+dd p {
+    margin: 0.25em 0;
+}
+   
+a, img, img.drawing {
+	border: 0;
+}
+
+pre {
+	border: 1pt solid #AEBDCC;
+	background-color: #F3F5F7;
+	padding: 5pt;
+	font-family: courier, monospace;
+	white-space: pre;
+	/* begin css 3 or browser specific rules - do not remove!
+	see: http://forums.techguy.org/archive/index.php/t-249849.html */
+    white-space: pre-wrap;
+    word-wrap: break-word;
+    white-space: -moz-pre-wrap;
+    white-space: -pre-wrap;
+    white-space: -o-pre-wrap;
+    /* end css 3 or browser specific rules */
+}
+
+pre.comment {
+    background-color: #CCCCCC;
+    color: red;
+    padding: 0;
+    margin: 0;
+    border: 0;
+}
+
+pre.comment:before {
+    content: url(../img/attention.png);
+}
+
+
+/* .comment css definition must be top of .red/.green/.blue or it won't work */
+.comment { color: #555555; background-color: #DDDDFF; }
+
+.red { background-color: #FFCCCC; }
+.green { background-color: #CCFFCC; }
+.blue { background-color: #CCCCFF; }
+
+.solid { border: 2px solid #000000; padding: 2px; }
+.dashed { border: 2px dashed #000000; padding: 2px; }
+.dotted { border: 2px dotted #000000; padding: 2px; }
+
+
+table
+{
+	margin: 0.5em 0 0 0.5em;
+	border-collapse: collapse;
+}
+
+th, td
+{
+	padding: 0.25em 0.5em 0.25em 0.5em;
+	border: 1pt solid #ADB9CC;
+}
+
+td p {
+	margin: 0;
+	padding: 0;
+}
+
+/* TableOfContents macro */
+.table-of-contents { border: 1px solid #bbbbbb;
+                     color: black; background-color: #eeeeee;
+                     font-size: small;
+                     text-align:left;
+                     margin: 0.5em; padding-left: 2em;
+                     width:50%; }
+.table-of-contents ol { margin:0; margin-left:1em;
+                        list-style-type:decimal; }
+.table-of-contents ul { margin:0;
+                        list-style-type:none; }
+.table-of-contents-heading { font-weight:bold; padding:0; margin:0; }
+
+
+.footnotes div {
+	width: 5em;
+	border-top: 1pt solid gray;
+}
+
+.footnotes ol {
+	padding: 0 2em;
+	margin: 0 0 1em;
+}
+
+.footnotes li {
+}
+
+.info {
+    float: right;
+    font-size: 0.7em;
+    color: gray;
+}
+
+#pageinfo {
+    margin-top: 2em;
+}
+
+.seperator {
+    color: gray;
+}
+
+#pagebottom {clear: both;}
+
+/* standard rule ---- */
+hr {
+    height: 1pt;
+    background-color: #9C9C9C;
+    border: 0;
+}
+
+/* custom rules ----- to ---------- */
+.hr1 {height: 2pt;}
+.hr2 {height: 3pt;}
+.hr3 {height: 4pt;}
+.hr4 {height: 5pt;}
+.hr5 {height: 6pt;}
+.hr6 {height: 7pt;}
+
+/* Replacement for deprecated html 3 <u> element and html 4 <strike> */
+.u {text-decoration: underline;}
+.strike {text-decoration: line-through;}
+
+/* eye catchers */
+.warning 
+{
+	color: red;
+}
+
+.error 
+{
+	color: red;
+}
+
+strong.highlight 
+{
+	background-color: #CCE0FF;
+	padding: 1pt;
+}
+
+
+/* Recent changes */
+
+.rcrss {
+	float: right;
+	margin: 0;
+}
+
+.recentchanges[dir="rtl"] .rcrss {
+	float: left;
+}
+
+.recentchanges table {
+	clear: both;
+}
+
+.recentchanges td {
+	vertical-align: top;
+	border: none;
+	border-bottom: 1pt solid #E6EAF0;
+	background: #F2F4F7;
+}
+
+.rcdaybreak td {
+	background: #B8C5D9;
+	border: none;
+}
+
+.rcdaybreak td a {
+	font-size: 0.88em;
+}
+
+.rcicon1, .rcicon2 {
+	text-align: center;
+}
+
+.rcpagelink {
+	width: 33%;
+}
+
+.rctime {
+	font-size: 0.88em;
+	white-space: nowrap;
+}
+
+.rceditor {
+	white-space: nowrap;
+	font-size: 0.88em;
+}
+
+.rccomment {
+	width: 50%;
+	color: gray;
+	font-size: 0.88em;
+}
+
+
+/* User Preferences */
+
+.userpref table, .userpref td {
+	border: none;
+}
+
+/* CSS for new code_area markup used by Colorizer and ParserBase */
+
+div.codearea { /* the div makes the border */
+	margin: 0.5em 0;
+	padding: 0;
+	border: 1pt solid #AEBDCC;
+	background-color: #F3F5F7;
+	color: black;
+}
+
+div.codearea pre { /* the pre has no border and is inside the div */
+	margin: 0;
+	padding: 10pt;
+	border: none;
+}
+
+a.codenumbers { /* format of the line numbering link */
+	margin: 0 10pt;
+	font-size: 0.85em;
+	color: gray;
+}
+
+/* format of certain syntax spans */
+div.codearea pre span.LineNumber {color: gray;}
+div.codearea pre span.ID         {color: #000000;}
+div.codearea pre span.Operator   {color: #0000C0;}
+div.codearea pre span.Char       {color: #004080;}
+div.codearea pre span.Comment    {color: #008000;}
+div.codearea pre span.Number     {color: #0080C0;}
+div.codearea pre span.String     {color: #004080;}
+div.codearea pre span.SPChar     {color: #0000C0;}
+div.codearea pre span.ResWord    {color: #A00000;}
+div.codearea pre span.ConsWord   {color: #008080; font-weight: bold;}
+div.codearea pre span.Error      {color: #FF8080; border: solid 1.5pt #FF0000;}
+div.codearea pre span.ResWord2   {color: #0080ff; font-weight: bold;}
+div.codearea pre span.Special    {color: #0000ff;}
+div.codearea pre span.Preprc     {color: #803999;}
+
+/* for diff parser */
+div.codearea pre span.DiffAdded   {color: #4876FF;}
+div.codearea pre span.DiffRemoved {color: #FF0000;}
+div.codearea pre span.DiffChanged {color: #FF7F50;}
+div.codearea pre span.DiffSeparator {color: #228B22; font-weight: bold}
+
+/* Search results */
+.advancedsearch {
+    border: 1pt solid #ADB9CC;
+}
+
+.advancedsearch td {
+    vertical-align: top;
+    background-color: #E7E7E7;    
+    border: 0px;
+}
+
+.advancedsearch td.searchfor {
+    font-weight: bold;
+}
+
+.advancedsearch input {
+    border: 1px solid #ADB9CC;
+    background-color: #fff;
+}
+
+.advancedsearch input[disabled] {
+    background-color: #eee;
+}
+
+.advancedsearch td.submit {
+    border-top: 1px solid #ADB9CC;
+    background-color: #fff;
+    text-align: right;
+}
+
+.advancedsearch optioni, select {
+    border: 1px solid #ADB9CC;
+    background-color: #fff;
+}
+
+
+.searchresults dt {
+    margin-top: 1em;
+    font-weight: normal;
+}
+
+.searchresults dd, .searchresults p {
+    font-size: 0.85em;
+}
+
+.searchresults .searchhitinfobar {
+    color: #008000;
+    margin-left: 15px;
+    margin-top: 0;
+}
+
+p.searchstats {
+    font-size: 0.8em;
+    text-align: right;
+    width: 100%;
+    background-color: #E6EAF0;
+    border-top: 1px solid #9088DC;
+    padding: 2px;
+}
+
+p.searchhint {
+    background-color: #E6EAF0;
+    border: 1px solid #9088DC;
+    padding: 2px;
+}
+
+.searchpages {
+    margin-left: auto;
+    margin-right: auto;
+}
+
+.searchpages tr, .searchpages td {
+    border: 0;
+    padding: 5px;
+    margin: 0;
+    text-align: center;
+    vertical-align: middle;
+    color: #b93a58;
+    font-weight: bold;
+    font-size: 1.05em;
+}
+
+.searchpages td a, .searchpages td a:link {
+    text-decoration: underline;
+}
+
+/* MonthCalendar css */
+
+/* days without and with pages linked to them */
+a.cal-emptyday {
+    color: #777777;
+    text-align: center;
+}
+a.cal-usedday {
+    color: #000000;
+    font-weight: bold;
+    text-align: center;
+}
+/* general stuff: workdays, weekend, today */
+td.cal-workday {
+    background-color: #DDDDFF;
+    text-align: center;
+}
+td.cal-weekend {
+    background-color: #FFDDDD;
+    text-align: center;
+}
+td.cal-today {
+    background-color: #CCFFCC;
+    border-style: solid;
+    border-width: 2pt;
+    text-align: center;
+}
+/* invalid places on the monthly calendar sheet */
+td.cal-invalidday {
+    background-color: #CCCCCC;
+}
+/* links to prev/next month/year */
+a.cal-link {
+    color: #000000;
+    text-decoration: none;
+}
+th.cal-header {
+    background-color: #DDBBFF;
+    text-align: center;
+}
+
+/* for MonthCalendar mouseover info boxes */
+TABLE.tip {
+    color: black;
+    background-color: #FF8888;
+    font-size: small;
+    font-weight: normal;
+    border-style: solid;
+    border-width: 1px;
+}
+
+TH.tip {
+    background-color: #FF4444;
+    font-weight: bold;
+    text-align: center;
+}
+
+TD.tip {
+    text-align: left;
+}
+*[dir="rtl"] TD.tip {
+    text-align: right;
+}
+
+/* end MonthCalendar stuff */
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mfact/css/msie.css	Wed Jun 04 20:23:44 2008 +0200
@@ -0,0 +1,2 @@
+/*  msie.css - MoinMoin MS Internet explorer bug workarounds */
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mfact/css/print.css	Wed Jun 04 20:23:44 2008 +0200
@@ -0,0 +1,53 @@
+/*  print.css - MoinMoin Default Styles
+
+Copyright (c) 2001, 2002, 2003 by Juergen Hermann
+*/
+
+/* content styles */
+
+html {
+	font-family: Times, serif;
+	font-size: 12pt;
+}
+
+body {
+    /* Give about 3.4cm in Mozilla/Firefox and about 2.2cm in Safari */
+	margin: 1.5cm;
+}
+
+a, a:visited, a.nonexistent, a.badinterwiki {
+	color: black;
+	text-decoration: none;
+}
+
+a:hover {
+	text-decoration: underline;
+}
+
+.info a {
+    color: gray;
+}
+
+pre {
+	font-size: 10pt;
+}
+
+a.interwiki:before, a.badinterwiki:before {
+	content: attr(title) ":";
+}
+
+a.interwiki img, a.badinterwiki img {
+	display: none;
+}
+
+.footnotes div {
+	width: 5em;
+	border-top: 1pt solid gray;
+}
+
+/* user interface styles */
+
+#header, #sidebar, #footer, #timings, #credits, #interwiki, #pagelocation {
+	display: none;
+}
+
Binary file mfact/img/PythonPowered.png has changed
Binary file mfact/img/admon-caution.png has changed
Binary file mfact/img/admon-important.png has changed
Binary file mfact/img/admon-note.png has changed
Binary file mfact/img/admon-tip.png has changed
Binary file mfact/img/admon-warning.png has changed
Binary file mfact/img/alert.png has changed
Binary file mfact/img/angry.png has changed
Binary file mfact/img/attach.png has changed
Binary file mfact/img/attention.png has changed
Binary file mfact/img/biggrin.png has changed
Binary file mfact/img/checkmark.png has changed
Binary file mfact/img/devil.png has changed
Binary file mfact/img/draft.png has changed
Binary file mfact/img/frown.png has changed
Binary file mfact/img/icon-error.png has changed
Binary file mfact/img/icon-info.png has changed
Binary file mfact/img/idea.png has changed
Binary file mfact/img/moin-attach.png has changed
Binary file mfact/img/moin-bottom.png has changed
Binary file mfact/img/moin-conflict.png has changed
Binary file mfact/img/moin-deleted.png has changed
Binary file mfact/img/moin-diff.png has changed
Binary file mfact/img/moin-download.png has changed
Binary file mfact/img/moin-edit.png has changed
Binary file mfact/img/moin-email.png has changed
Binary file mfact/img/moin-ftp.png has changed
Binary file mfact/img/moin-help.png has changed
Binary file mfact/img/moin-home.png has changed
Binary file mfact/img/moin-icon.png has changed
Binary file mfact/img/moin-info.png has changed
Binary file mfact/img/moin-inter.png has changed
Binary file mfact/img/moin-jabber.png has changed
Binary file mfact/img/moin-new.png has changed
Binary file mfact/img/moin-news.png has changed
Binary file mfact/img/moin-parent.png has changed
Binary file mfact/img/moin-print.png has changed
Binary file mfact/img/moin-raw.png has changed
Binary file mfact/img/moin-readonly.png has changed
Binary file mfact/img/moin-renamed.png has changed
Binary file mfact/img/moin-rss.png has changed
Binary file mfact/img/moin-search.png has changed
Binary file mfact/img/moin-show.png has changed
Binary file mfact/img/moin-subscribe.png has changed
Binary file mfact/img/moin-telnet.png has changed
Binary file mfact/img/moin-top.png has changed
Binary file mfact/img/moin-unsubscribe.png has changed
Binary file mfact/img/moin-up.png has changed
Binary file mfact/img/moin-updated.png has changed
Binary file mfact/img/moin-www.png has changed
Binary file mfact/img/ohwell.png has changed
Binary file mfact/img/prio1.png has changed
Binary file mfact/img/prio2.png has changed
Binary file mfact/img/prio3.png has changed
Binary file mfact/img/redface.png has changed
Binary file mfact/img/sad.png has changed
Binary file mfact/img/smile.png has changed
Binary file mfact/img/smile2.png has changed
Binary file mfact/img/smile3.png has changed
Binary file mfact/img/smile4.png has changed
Binary file mfact/img/star_off.png has changed
Binary file mfact/img/star_on.png has changed
Binary file mfact/img/thumbs-up.png has changed
Binary file mfact/img/tired.png has changed
Binary file mfact/img/tongue.png has changed