Wiki Utils
inyoka.wiki.utils
Contains various helper functions for the wiki. Most of them are only used for the wiki application itself, but there are use cases for some of them outside of the wiki too. Any example for that is the diff renderer which might be useful for the pastebin too.
- copyright:
2007-2024 by the Inyoka Team, see AUTHORS for more details.
- license:
BSD, see LICENSE for more details.
- inyoka.wiki.utils.case_sensitive_redirect(function)
Redirect to the right case of a wiki page.
- inyoka.wiki.utils.get_safe_redirect_target(target=None)
Resolve X-Redirect headers without circular redirects.
- inyoka.wiki.utils.has_conflicts(text)
Returns True if there are conflict markers in the text.
- inyoka.wiki.utils.quote_text(text, author=None, item_url=None)
Returns the wiki syntax quoted version of text. If the optional argument author (username as string or User object) is given, a written-by info is prepended.