From 7aad678255abc9e0a10e6c185a5598312bdd9739 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 6 May 2011 14:31:56 +0000 Subject: [PATCH] [publisher] add a DEFAULT_CHARSET variable which can be overriden from the Defaults module This commit also work-around bugs consequent to the change of default charset in quixote 2.7. --- authentic/publisher.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/authentic/publisher.py b/authentic/publisher.py index 2e195b6..dc23935 100644 --- a/authentic/publisher.py +++ b/authentic/publisher.py @@ -1,6 +1,10 @@ from cStringIO import StringIO import traceback +import quixote + +DEFAULT_CHARSET = 'iso-8859-1' + from Defaults import * try: @@ -16,6 +20,8 @@ import sessions import identities +quixote.DEFAULT_CHARSET = DEFAULT_CHARSET + class AuthenticPublisher(QommonPublisher): APP_NAME = 'authentic' APP_DIR = APP_DIR @@ -24,6 +30,8 @@ class AuthenticPublisher(QommonPublisher): WEBROOT_DIR = None supported_languages = ['fr'] + # to modify charset of an v + site_charset = DEFAULT_CHARSET root_directory_class = RootDirectory admin_directory_class = AdminRootDirectory