Adds support for previewing modifications on redmine's wiki pages.
Status: draft (needs further work to be really useful)
This commit is contained in:
parent
94a1fff7fa
commit
e3f46ac751
4 changed files with 28 additions and 0 deletions
|
|
@ -72,3 +72,14 @@ class RedmineBackend(BaseBackend, ICapContent):
|
|||
|
||||
with self.browser:
|
||||
return self.browser.set_wiki_source(project, page, content.content, message)
|
||||
|
||||
def preview_content(self, content):
|
||||
try:
|
||||
_type, project, page = self.id2path(content.id)
|
||||
except ValueError:
|
||||
return
|
||||
|
||||
with self.browser:
|
||||
return self.browser.get_wiki_preview(project, page, content.content)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue