I've installed babel and the xenwebmanager (svn r96) - I know this is not a released version, but I'm getting stonewalled trying to figure out why I'm not getting past the following:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/CherryPy-3.1.2-py2.4.egg/cherrypy/_cprequest.py", line 614, in respond
self.hooks.run('before_finalize')
File "/usr/lib/python2.4/site-packages/CherryPy-3.1.2-py2.4.egg/cherrypy/_cprequest.py", line 98, in run
hook()
File "/usr/lib/python2.4/site-packages/CherryPy-3.1.2-py2.4.egg/cherrypy/_cprequest.py", line 58, in __call__
return self.callback(**self.kwargs)
File "/usr/share/xenwebmanager.svn/i18n_tool.py", line 228, in set_lang
cherrypy.response.headers['Content-Language'] = str(
File "/usr/lib/python2.4/site-packages/CherryPy-3.1.2-py2.4.egg/cherrypy/__init__.py", line 301, in __getattr__
return getattr(child, name)
AttributeError: 'Response' object has no attribute 'i18n'
cherry config has the following:
[global]
server.socket_host = "0.0.0.0"
server.socket_port = 443
server.thread_pool = 10
server.thread_pool_max = 3
tools.sessions.on = True
tools.staticdir.root = config.home_dir
tools.sessions.storage_type = "file"
tools.sessions.storage_path = "/var/lib/xenwebmanager"
tools.sessions.timeout = 60
server.ssl_certificate = 'ssl/server.crt'
server.ssl_private_key = 'ssl/server.key'
tools.basic_auth.on = True
tools.basic_auth.realm = "Enter your username and password"
tools.basic_auth.users = config.users
tools.basic_auth.encrypt = config.encrypt_password
tools.encode.encoding = "utf-8"
tools.encode.add_charset = True
tools.encode.text_only = False
tools.encode.on = True
tools.decode.default_encoding = ['utf-8']
server.socket_timeout = 600000
cherrypy.response.timeout = 360000
server.max_request_header_size = 0
server.max_request_body_size = 0
log.access_file = "/var/log/xenwebmanager/access_log"
log.error_file = "/var/log/xenwebmanager/error_log"
log.screen = False
#log.screen = True
cherrypy.response.headers = "Content-Type=text/json; charset=utf-8'"
[/]
tools.I18nTool.on = True
tools.I18nTool.default = 'en_US'
tools.I18nTool.mo_dir = 'i18n'
tools.I18nTool.domain = 'xenwebmanager'
[/css]
tools.staticdir.on = True
tools.staticdir.dir = "css"
[/js]
tools.staticdir.on = True
tools.staticdir.dir = "js"
[/include]
tools.staticdir.on = True
tools.staticdir.dir = "include"
[/images]
tools.staticdir.on = True
tools.staticdir.dir = "images"
[/images_map]
tools.staticdir.on = True
tools.staticdir.dir = "images_map"
[/loading.html]
tools.staticfile.on = True
tools.staticfile.filename = config.home_dir + "/templates/loading.html"
[/importvm.html]
tools.staticfile.on = True
tools.staticfile.filename = config.home_dir + "/templates/importvm.html"
[/confirmiscsi.html]
tools.staticfile.on = True
tools.staticfile.filename = config.home_dir + "/templates/confirmiscsi.html"
[/favicon.ico]
tools.staticfile.on = True
tools.staticfile.filename = config.home_dir + "/images/xen.png"
[/VncViewer.jar]
tools.staticfile.on = True
tools.staticfile.filename = config.home_dir + "/vnc/VncViewer.jar"