"""
path = os.path.abspath(os.path.join(settings.MEDIA_ROOT, self.get_directory(), filename))
- # WTF how would that be possible?
if not path.startswith(os.path.abspath(settings.MEDIA_ROOT)):
raise Http404
if filename:
{% extends "base.html" %}
{% load toolbar_tags i18n %}
-
+{# unused #}
{% block title %}{{ book.title }} - {{ block.super }}{% endblock %}
{% block extrahead %}
{% load compressed %}
{% extends "wiki/document_details_base.html" %}
{% load i18n %}
-
+{# unused #}
{% block editor-class %}readonly{% endblock %}
{% block extrabody %}
# -*- coding: utf-8 -*-
+import sys
def settings(request):
'DEBUG': settings.DEBUG,
'RAVEN_CONFIG': getattr(settings, 'RAVEN_CONFIG'),
'APP_VERSION': VERSION,
+ 'FS_ENC': sys.getfilesystemencoding(),
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
{% load i18n %}
+{# unused #}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />