[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.
This commit is contained in:
Benjamin Dauvergne 2011-05-06 14:31:56 +00:00
parent 78d30c6efd
commit 7aad678255
1 changed files with 8 additions and 0 deletions

View File

@ -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