On 2015-06-29, 17:30:03 (UTC-3), Cédric Krier wrote: > > On 2015-06-29 20:56, Cédric Krier wrote: > > On 2015-06-29 08:06, Bruno M. Villasanti (Thymbra) wrote: > > > On 2015-06-13 8:59:41 (UTC-3), Cédric Krier wrote: > > > > > > > > Hi, > > > > > > > > I have setup a Pootle instance to ease the translation of Tryton. > > > > The instance is running at http://pootle.tryton.org/ > > > > > > > > If you are a current translator, please create an account, I will > give > > > > you administration right for this language. This will give you the > right > > > > to request update from the source, push/commit the translation and > > > > manage access right for this language. > > > > > > > > > > I am not being able to download the .po files for the es_AR language. > > > Is it due to a temporary installation error or I do not have > administrator > > > rights assigned? > > > > Here is the traceback: > > > > Traceback (most recent call last): > > > > File > "/home/pootle/.local/lib64/python2.7/site-packages/django/core/handlers/base.py", > > line 186, in get_response > > response = middleware_method(request, response) > > > > File > "/home/pootle/.local/lib64/python2.7/site-packages/django/middleware/cache.py", > > line 123, in process_response > > self.cache.set(cache_key, response, timeout) > > > > File > "/home/pootle/.local/lib64/python2.7/site-packages/django/core/cache/backends/db.py", > > line 80, in set > > self._base_set('set', key, value, timeout) > > > > File > "/home/pootle/.local/lib64/python2.7/site-packages/django/core/cache/backends/db.py", > > line 105, in _base_set > > pickled = pickle.dumps(value, pickle.HIGHEST_PROTOCOL) > > > > PicklingError: Can't pickle <type 'generator'>: attribute lookup > __builtin__.generator failed > > > > > > The generator is a django.http.HttpResponse instance. > > > > I'm pretty sure it is a bug in django and the version running is 1.4.20 > which > > can not be upgraded because Pootle requires Django>=1.4.10,<1.5 > > I already searched for this issue but I give up for now as I quiet hate > Django > > (which doesn't deserve its reputation) > > So if someone kwno how to fix this Django bug, I will be happy to apply > it. > > OK, I did not find a way to fix Django but this [1] point to the fact > that developpers don't think export should be managed by django but > directly by the webserver. So I changed the url matching to exclude > '^/export/' urls to be passed to pootle but managed directly by > lighttpd. > So now the export should work again. >
I confirm that downloads now work (.po and .zip files).