Small fixes and changes in qwebcontentedit and ICapContent.

- content preview's html code is now cleaner
 - ICapContent.preview_content() renamed to ICapContent.get_content_preview()
 - tab "preview" was shown first when starting qwebcontentedit. Fixed.
This commit is contained in:
Clément Schreiner 2011-02-03 14:28:43 +01:00
commit 3cbb5671d3
5 changed files with 27 additions and 20 deletions

View file

@ -73,13 +73,11 @@ class RedmineBackend(BaseBackend, ICapContent):
with self.browser:
return self.browser.set_wiki_source(project, page, content.content, message)
def preview_content(self, content):
def get_content_preview(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)
return self.browser.get_wiki_preview(project, page, content.content)