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:]))