def wiki_page_draft(wname, **kwargs): node = kwargs["node"] or kwargs["project"] wiki_page = node.get_wiki_page(wname) return { "wiki_content": wiki_page.content if wiki_page else None, "wiki_draft": (wiki_page.get_draft(node) if wiki_page else wiki_utils.get_sharejs_content(node, wname)), }
def wiki_page_draft(wname, **kwargs): node = kwargs['node'] or kwargs['project'] wiki_page = node.get_wiki_page(wname) return { 'wiki_content': wiki_page.content if wiki_page else None, 'wiki_draft': (wiki_page.get_draft(node) if wiki_page else wiki_utils.get_sharejs_content(node, wname)), }