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:
parent
9765b90844
commit
8ad7a0c573
2 changed files with 5 additions and 0 deletions
|
@ -196,6 +196,7 @@ class ResourceView(BaseView):
|
||||||
if contentType == 'text/restructured' and wikiLinksActive(self.loopsRoot):
|
if contentType == 'text/restructured' and wikiLinksActive(self.loopsRoot):
|
||||||
# TODO: make this more flexible/configurable
|
# TODO: make this more flexible/configurable
|
||||||
wm = LoopsWikiManager(self.loopsRoot)
|
wm = LoopsWikiManager(self.loopsRoot)
|
||||||
|
wm.setup()
|
||||||
wiki = LoopsWiki('loops')
|
wiki = LoopsWiki('loops')
|
||||||
wiki.__parent__ = self.loopsRoot
|
wiki.__parent__ = self.loopsRoot
|
||||||
wiki.__name__ = 'wiki'
|
wiki.__name__ = 'wiki'
|
||||||
|
|
|
@ -66,6 +66,10 @@ class LoopsWikiManager(WikiManager):
|
||||||
|
|
||||||
class LoopsWiki(Wiki):
|
class LoopsWiki(Wiki):
|
||||||
|
|
||||||
|
def __init__(self, name):
|
||||||
|
self.name = name
|
||||||
|
self.pages = {}
|
||||||
|
|
||||||
def getPage(self, name):
|
def getPage(self, name):
|
||||||
if name.startswith('.target'):
|
if name.startswith('.target'):
|
||||||
return self.getManager().getObject(int(name[7:]))
|
return self.getManager().getObject(int(name[7:]))
|
||||||
|
|
Loading…
Add table
Reference in a new issue