F Wolff wrote:
> On Ma, 2007-01-22 at 12:26 +0100, Olivier Salaün - CRU wrote:
>
>> I was just reported the same problem from one of our translators of Sympa.
>> I found additional informations from the Pootle log file :
>> [...]
>> It looks like the problem might be related to the 8bit characters in the
>> user's ID (Fañch).
>> [...]
>>
> Thank you, Olivier.
>
> Did this solve the problem? It seems to be a different problem than what
> Felipe is reporting. I'm quite sure his username only has ascii
> characters and the error seems to be in position 28 - a bit far down for a
> username (same for Daniel's problem). I've never been convinced that
> non-ascii usernames work 100% everywhere, and this seems to confirm it.
> Of course, if we can fix Pootle, it would however be much better than
> renaming the user to a misspelling :-/
>
> Olivier, can you perhaps test whether the following resolves the problem with
> the non-ascii username? I didn't test it myself yet.
>
> --- translatepage.py (revision 4808)
> +++ translatepage.py (working copy)
> @@ -344,7 +344,7 @@
> def getusernode(self):
> """gets the user's prefs node"""
> if self.session.isopen:
> - return getattr(self.session.loginchecker.users, self.session.username,
> None)
> + return getattr(self.session.loginchecker.users,
> self.session.username.encode("utf-8"), None)
> else:
> return None
>
I confirm that it fixes the problem : I had a try with another user with
8bit chars and noticed the same error. Your patch has fixed the problem.
Thanks.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle