Hi,
I've been trying to run Pootle through Apache with the mod_wsgi module.
Installation went fine and Pootle is indeed running through Apache.
But I'm running into a problem after uploading a po file to a
translation project.
Is this a bug or a config error on my side?
The resulting traceback:
Traceback (most recent call last):
File
"/opt/python2.5/lib/python2.5/site-packages/django/core/handlers/base.py",
line 92, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/var/www/pootle/local_apps/pootle_app/views/language/view.py",
line 56, in decorated_f
return f(request, translation_project, *args, **kwargs)
File "/var/www/pootle/local_apps/pootle_app/views/language/view.py",
line 66, in decorated_f
return f(request, translation_project, *args, **kwargs)
File "/var/www/pootle/local_apps/pootle_app/views/language/view.py",
line 104, in project_index
return project_index_view(request, translation_project, directory)
File
"/var/www/pootle/local_apps/pootle_app/views/language/project_index.py",
line 89, in view
view_obj(request, translation_project, directory),
File "/var/www/pootle/local_apps/pootle_app/lib/view_handler.py",
line 48, in __call__
return self.GET(template_vars, request, *args, **kwargs)
File
"/var/www/pootle/local_apps/pootle_app/views/language/project_index.py",
line 71, in GET
'children': tp_common.get_children(request,
translation_project, directory),
File
"/var/www/pootle/local_apps/pootle_app/views/language/tp_common.py",
line 54, in get_children
for child_store in directory.filter_stores(search).all()]
File
"/var/www/pootle/local_apps/pootle_app/views/language/item_dict.py",
line 289, in make_store_item
item = make_generic_item(request, store, action, show_checks)
File
"/var/www/pootle/local_apps/pootle_app/views/language/item_dict.py",
line 249, in make_generic_item
quick_stats = add_percentages(path_obj.getquickstats())
File "/var/www/pootle/local_apps/pootle_misc/util.py", line 31, in
_getfromcache
result = function(instance, *args, **kwargs)
File "/var/www/pootle/local_apps/pootle_store/models.py", line 82, in
getquickstats
return dict(self.file.getquickstats())
File "/var/www/pootle/local_apps/pootle_store/fields.py", line 121,
in getquickstats
stats_tuple.quickstats = self._statscache.filetotals(self.path,
store=self._get_store) # or statsdb.emptyfiletotals()
File
"/opt/python2.5/lib/python2.5/site-packages/translate/storage/statsdb.py",
line 441, in filetotals
return self.file_totals[self._getfileid(filename, store=store)]
AttributeError: 'StatsCache' object has no attribute 'file_totals'
Some version info:
- Pootle: 2.0.2
- Django: 1.1.1
- Python: 2.5.5
- Apache: 2.2.3
- Linux: CentOS 5.3
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle