Bug 814593
Summary: | "TypeError: 'unicode' object does not support item assignment" when pulling translation from server | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ding-Yi Chen <dchen> |
Component: | zanata-python-client | Assignee: | James Ni <jni> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | dchen, jni, jochang, petersen, sflaniga, zanata-bugs |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python client version: 1.3.7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-06-18 02:42:46 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ding-Yi Chen
2012-04-20 07:28:28 UTC
Thanks Ding, I have made a commit yesterday to fix this issue, this issue is about processing msgstr_plural when pulling from server. https://github.com/zanata/zanata-python-client/commit/1594598e4cc870d74d246198d20195140d13b153 I have test on my local machine, both push and pull is correct (for GNU Tar). I am testing the state machine now and try to address the issue you mentioned. Thanks 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 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 (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 verified with zanata python client version: 1.3.5-4-gc828 zanata-python-client-1.3.7-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.7-1.fc16 zanata-python-client-1.3.7-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.7-1.el5 zanata-python-client-1.3.7-1.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.7-1.fc17 zanata-python-client-1.3.7-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.7-1.fc15 zanata-python-client-1.3.7-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.7-1.el6 Package zanata-python-client-1.3.7-1.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing zanata-python-client-1.3.7-1.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-9357/zanata-python-client-1.3.7-1.fc16 then log in and leave karma (feedback). Package zanata-python-client-1.3.7-1.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing zanata-python-client-1.3.7-1.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-6156/zanata-python-client-1.3.7-1.el6 then log in and leave karma (feedback). zanata-python-client-1.3.7-1.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |