work in progress: wiki:. sample implementation with reStructuredText format
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3062 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
6057cfa3a0
commit
ff0078630a
1 changed files with 2 additions and 0 deletions
|
@ -76,9 +76,11 @@ class WikiPage(object):
|
||||||
return self.write(self.parse())
|
return self.write(self.parse())
|
||||||
|
|
||||||
def parse(self):
|
def parse(self):
|
||||||
|
# TODO: delegate to parser plugin
|
||||||
return publish_doctree(self.text)
|
return publish_doctree(self.text)
|
||||||
|
|
||||||
def write(self, tree):
|
def write(self, tree):
|
||||||
|
# TODO: delegate to writer plugin, use translator plugins
|
||||||
writer = Writer()
|
writer = Writer()
|
||||||
writer.translator_class = HTMLBodyTranslator
|
writer.translator_class = HTMLBodyTranslator
|
||||||
return publish_from_doctree(tree, writer=writer)
|
return publish_from_doctree(tree, writer=writer)
|
||||||
|
|
Loading…
Add table
Reference in a new issue