[zanata-bugs] [Bug 814593] "TypeError: 'unicode' object does not support item assignment" when pulling translation from server

bugzilla at redhat.com bugzilla at redhat.com
Mon May 7 13:59:22 UTC 2012


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=814593

James Ni <jni at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |ON_QA

--- Comment #3 from James Ni <jni at redhat.com> 2012-05-07 09:59:20 EDT ---
(In reply to comment #2)
> Hi james,
> It didn't seem to work for me, can you look into it again or let me know where
> I went wrong?
> xml:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <config xmlns="http://zanata.org/namespace/config/">
>     <url>http://zanata-empire.lab.eng.bne.redhat.com:8080/</url>
>         <project>AboutFedora</project>
>             <project-type>podir</project-type>
>                 <project-version>f13</project-version>
>                     <locales>
>                     <locale map-from="zh-CN">zh-Hans</locale>
>                         </locales>
>                         </config>
> 
> zanata.ini
> 
> zanata_1_5_auto.url=http://zanata-empire.lab.eng.bne.redhat.com:8080/
> zanata_1_5_auto.username=admin
> zanata_1_5_auto.key=b6d7044e9ee3b2447c28fb7c50d86d98
> 
> 
> setup:
> zanata python client version: 1.3.5-1-g0279, zanata server API version:
> 1.6.0-alpha-2
> Project: AboutFedora
> Version: f13
> Username: admin
> 
> 
> step 1:locale "zh-CN" is enabled, and user joined language group "zh-CH"
> step 2:zanata push --push-trans
> 
> actual results:
> error: Error 401 - This operation is not authorized, please check username and
> apikey


Hi Joycy,

I test the client, if you joined language group "zh-CN", but mapping to
"zh-Hans" in zanata.xml, you will receive this error message. I think this is
correct responding from server, so please join the "zh-Hans" group on server
side, then it will work correct. 

> if step 2 replaced with:zanata pull 
> 
> actual result:
> Fetching the content of About_Fedora from Zanata server: 
> Retrieving zh-CN translation from server:
> error: Error 400 - Unsupported Extensions within this context:
> comment?skeletons
> 
> Fetching the content of Article_Info from Zanata server: 
> Retrieving zh-CN translation from server:
> error: Error 400 - Unsupported Extensions within this context:
> comment?skeletons
> 
> Fetching the content of Author_Group from Zanata server: 
> Retrieving zh-CN translation from server:
> error: Error 400 - Unsupported Extensions within this context:
> comment?skeletons
> 
> Fetching the content of Revision_History from Zanata server: 
> Retrieving zh-CN translation from server:
> error: Error 400 - Unsupported Extensions within this context:
> comment?skeletons

Thanks, I think this is a fault in python client, i make a mistake when
processing "query param" of skeletons, i should use "&" to separate "query
param", i have fixed and commit the changes, so please download the latest
source code to verify this issue. It works as expected when i doing test on my
side. 

Best Regards 
james

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the zanata-bugs mailing list