About this document
This document describes the Django views provided by Softwarefabrica Django Wiki.
Most views are implemented using generic views, directly inside softwarefabrica.django.wiki.urls. These are so simple that are self-documenting and not described here.
Custom views are implemented in softwarefabrica.django.wiki.views.
See also the models documentation, forms documentation, and templates documentation.
Renders a wiki Page.
The default template used is "wiki/page_detail.html".
If the request GET as a rev parameter, then it's used to fetch a specific PageContent.
If the request GET as a format parameter, then it's used to render in the specified format ("text", "html" or "pdf". "pdf" is not yet implemented.). If the format is specified, a different template is used: "wiki/page_detail_txt.txt" for "text" and "wiki/page_detail_html.html" for "html". The "html" format is used to return an HTML version with a plain-text MIME type, thus forcing the browser to propose a download. This is useful to get a page off the wiki in HTML to be placed on a different location.
Required arguments
None.
Optional arguments
Context:
Template:
"wiki/page_detail.html" or template_name if format is not specified in the request GET dictionary.
Handles creation or modification of a wiki Page.
The default template used is "wiki/page_edit.html".
Please note that every time a Page instance content is modified, a new PageContent instance is created (using PageContentForm), with a greater rev field value.
Required arguments
One of page_id, pagename or create. See below for their meaning.
Optional arguments
Context:
Template:
"wiki/page_edit.html" or template_name.
Performs searches through the wiki, returning Wiki, Page and PageContent instances.
The default template used is "wiki/search_results.html".
Required arguments
None.
Optional arguments
Context:
Template:
"wiki/search_results.html" or template_name.