1.1 --- a/ImprovedTableParser.py Wed Apr 18 01:20:51 2012 +0200
1.2 +++ b/ImprovedTableParser.py Mon Jun 04 20:53:02 2012 +0200
1.3 @@ -12,7 +12,7 @@
1.4 from MoinSupport import *
1.5 import re
1.6
1.7 -__version__ = "0.2"
1.8 +__version__ = "0.3"
1.9
1.10 # Regular expressions.
1.11
1.12 @@ -270,19 +270,6 @@
1.13 del attrs[name]
1.14
1.15 # Formatting of embedded content.
1.16 -# NOTE: Borrowed from EventAggregator.
1.17 -
1.18 -def getParserClass(request, format):
1.19 -
1.20 - """
1.21 - Return a parser class using the 'request' for the given 'format', returning
1.22 - a plain text parser if no parser can be found for the specified 'format'.
1.23 - """
1.24 -
1.25 - try:
1.26 - return wikiutil.searchAndImportPlugin(request.cfg, "parser", format or "plain")
1.27 - except wikiutil.PluginMissingError:
1.28 - return wikiutil.searchAndImportPlugin(request.cfg, "parser", "plain")
1.29
1.30 def getFormatterClass(request, format):
1.31
1.32 @@ -310,22 +297,6 @@
1.33 finally:
1.34 request.formatter = old_fmt
1.35
1.36 -def redirectedOutput(request, parser, fmt, **kw):
1.37 -
1.38 - "A fixed version of the request method of the same name."
1.39 -
1.40 - buf = StringIO()
1.41 - request.redirect(buf)
1.42 - try:
1.43 - parser.format(fmt, **kw)
1.44 - if hasattr(fmt, "flush"):
1.45 - buf.write(fmt.flush(True))
1.46 - finally:
1.47 - request.redirect()
1.48 - text = buf.getvalue()
1.49 - buf.close()
1.50 - return text
1.51 -
1.52 # Sorting utilities.
1.53
1.54 def get_sort_columns(s, start=0):