Hi Friedel,
Here is the info regarding my server setup
Pootle 2.1.6
Translate Toolkit 1.9.0
Django 1.2.7
running on Ubuntu 10.04, Python 2.6 with a Postgresql backend.
I decided to upgrade to the latest version of Pootle, as I am really
more interested in translating Java property files. I have things more
or less working now, and the error which I experience yesterday, seems
to have been related to an old version of the translate toolkit which
was installed by default. I have upgraded this, and this error has
disappeared. However, I am running into some more issues.
All of our property files have a language and locale, so I setup a new
language French (France) with fr_FR. Pootle recognizes all of the
property files which have been partially translated already. When I
try and edit one file, I get this error
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py",
line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File
"/usr/local/lib/python2.6/dist-packages/django/views/decorators/cache.py",
line 78, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/pootle_store/views.py",
line 526, in translate
return translate_page(request, store.units, store=store)
File "/usr/local/lib/python2.6/dist-packages/pootle_store/models.py",
line 1009, in _get_units
self.require_units()
File "/usr/local/lib/python2.6/dist-packages/pootle_store/models.py",
line 691, in require_units
if self.file and is_monolingual(type(self.file.store)) and \
File "/usr/local/lib/python2.6/dist-packages/pootle_store/fields.py",
line 148, in _get_store
self._update_store_cache()
File "/usr/local/lib/python2.6/dist-packages/pootle_store/fields.py",
line 163, in _update_store_cache
self._store_tuple = StoreTuple(factory.getobject(self.path,
ignore=self.field.ignore, classes=factory_classes),
File "/usr/local/lib/python2.6/dist-packages/translate/storage/factory.py",
line 187, in getobject
store = storeclass.parsefile(storefile)
File "/usr/local/lib/python2.6/dist-packages/translate/storage/base.py",
line 813, in parsefile
newstore = cls.parsestring(storestring)
File "/usr/local/lib/python2.6/dist-packages/translate/storage/base.py",
line 717, in parsestring
newstore.parse(storestring)
File "/usr/local/lib/python2.6/dist-packages/translate/storage/properties.py",
line 485, in parse
for line in propsrc.split(u"\n"):
AttributeError: 'NoneType' object has no attribute 'split'
Any ideas what this might be? Possible something weird in the property file?
Regards,
Jason
On Thu, Dec 8, 2011 at 12:30 PM, Jason Pickering
<[email protected]> wrote:
> Hi there. I am trying to get a Pootle server running, and am running
> into this. Any ideas what I may be doing wrong?
>
>
> Server Error
>
> An error has occurred. Thank you for your patience.
> getobject() got an unexpected keyword argument 'classes'
>
> Regards,
> Jason Pickering
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle