From 8ad7a0c5735f9d319f897f8734829794be514579 Mon Sep 17 00:00:00 2001 From: helmutm Date: Sun, 1 Nov 2009 13:29:54 +0000 Subject: [PATCH] fix wiki-related stuff git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3615 fd906abe-77d9-0310-91a1-e0d9ade77398 --- browser/resource.py | 1 + wiki/base.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/browser/resource.py b/browser/resource.py index 3addfce..1b0b656 100644 --- a/browser/resource.py +++ b/browser/resource.py @@ -196,6 +196,7 @@ class ResourceView(BaseView): if contentType == 'text/restructured' and wikiLinksActive(self.loopsRoot): # TODO: make this more flexible/configurable wm = LoopsWikiManager(self.loopsRoot) + wm.setup() wiki = LoopsWiki('loops') wiki.__parent__ = self.loopsRoot wiki.__name__ = 'wiki' diff --git a/wiki/base.py b/wiki/base.py index a515b69..14808a6 100644 --- a/wiki/base.py +++ b/wiki/base.py @@ -66,6 +66,10 @@ class LoopsWikiManager(WikiManager): class LoopsWiki(Wiki): + def __init__(self, name): + self.name = name + self.pages = {} + def getPage(self, name): if name.startswith('.target'): return self.getManager().getObject(int(name[7:]))