Contents
Tabs Parser
Description
Inserts Tab Control using jQuery UI Tabs.
See http://sixmen.pe.kr/index.cgi/MoinMoin/Tabs for live example.
Download & Release Notes
Download |
Release Version |
Moin Version |
Release Notes |
1.0 |
1.9 |
|
Installation
For general installation instructions, see ParserMarket/InstallingParsers. This parser requires no special dependencies, such as outside Python libraries.
You may get an excetion if you don't install PyXML.
File ".../plugin/parser/tabs.py", line 5, in <module> from MoinMoin.formatter.text_docbook import Formatter as DocBookFormatter File ".../MoinMoin/formatter/text_docbook.py", line 15, in <module> from xml.dom.ext.reader import Sax ImportError: No module named ext.reader
In this case, comment code about DocBook output.
1 --- tabs.py.orig 2012-02-16 10:04:25.000000000 +0900
2 +++ tabs.py 2012-02-16 10:04:45.000000000 +0900
3 @@ -2,7 +2,7 @@
4 import re
5 #from MoinMoin.parser.text_moin_wiki import Parser as WikiParser
6 from nocamelcase import Parser as WikiParser
7 -from MoinMoin.formatter.text_docbook import Formatter as DocBookFormatter
8 +#from MoinMoin.formatter.text_docbook import Formatter as DocBookFormatter
9
10 class Parser:
11 def __init__(self, raw, request, **kw):
12 @@ -72,7 +72,7 @@
13 request.write(''.join(result))
14
15 def format(self, formatter):
16 - if formatter.__class__==DocBookFormatter:
17 + if False:#formatter.__class__==DocBookFormatter:
18 self._docbook(formatter)
19 else:
20 self._wiki(formatter)
Or, you can make your DocBook formatter to work without PyXML. See MoinMoinBugs/OldXMLPathIsMissing.
Usage
To use this parser, put all tab content to tabs parser block. Each tab is divided by Tabs psuedo-macro.
Example
{{{{#!tabs <<Tabs(One)>> This is the first tab. {{{#!highlight js var sayHello = function () { alert("Hello!"); } }}} <<Tabs(Two)>> This is the second tab. || ID || Name || || sixmen || Yoon Sang-min || }}}}
License
This parser is released under the terms of the GNU GPL.