fix wiki-related stuff

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3615 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2009-11-01 13:29:54 +00:00
parent 9765b90844
commit 8ad7a0c573
2 changed files with 5 additions and 0 deletions

View file

@ -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'

View file

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