changeset 226:23e310dd1ff7

No need for a wiki reference in the formatter.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 13 Mar 2014 21:45:46 -0700
parents ebb12ff21cb2
children 6457416ac7d7
files wikked/formatter.py wikked/page.py
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/wikked/formatter.py	Wed Mar 12 23:02:40 2014 -0700
+++ b/wikked/formatter.py	Thu Mar 13 21:45:46 2014 -0700
@@ -36,8 +36,7 @@
         "stable" content (everything except queries run on the fly,
         like `include` or `query`).
     """
-    def __init__(self, wiki):
-        self.wiki = wiki
+    def __init__(self):
         self.coercers = {
                 'include': self._coerceInclude
                 }
--- a/wikked/page.py	Wed Mar 12 23:02:40 2014 -0700
+++ b/wikked/page.py	Thu Mar 13 21:45:46 2014 -0700
@@ -137,7 +137,7 @@
 
         # Format the page and get the meta properties.
         ctx = FormattingContext(page_info.url)
-        f = PageFormatter(wiki)
+        f = PageFormatter()
         data.formatted_text = f.formatText(ctx, data.raw_text)
         data.local_meta = ctx.meta
         data.local_links = ctx.out_links