[Bug 1670725] [NEW] zanata_users.py does not work with new Zanata (3.9.6)
Public bug reported: zanata_users.py does not work with Zanata 3.9.6. zanata_users.py parses the generated web pages, so there is no surprise after upgrading zanata. ubuntu@sheep6:~/tmp/i18n/tools/zanata (master)[15:23:51]$ python zanata_users.py Retreiving language list Getting member list from language el member_url=/language/view/el?dswid=-5508 Traceback (most recent call last): File "zanata_users.py", line 145, in <module> data = collect_zanata_language_and_members() File "zanata_users.py", line 120, in collect_zanata_language_and_members for role, user_id in zanata.iter_language_members(member_url): File "zanata_users.py", line 51, in iter_language_members span_txt = user.find('span', {'class': 'list__item__meta'}).text AttributeError: 'NoneType' object has no attribute 'text' ** Affects: openstack-i18n Importance: Medium Status: New -- You received this bug notification because you are a member of OpenStack I18n Core Team, which is subscribed to openstack i18n. https://bugs.launchpad.net/bugs/1670725 Title: zanata_users.py does not work with new Zanata (3.9.6) Status in openstack i18n: New Bug description: zanata_users.py does not work with Zanata 3.9.6. zanata_users.py parses the generated web pages, so there is no surprise after upgrading zanata. ubuntu@sheep6:~/tmp/i18n/tools/zanata (master)[15:23:51]$ python zanata_users.py Retreiving language list Getting member list from language el member_url=/language/view/el?dswid=-5508 Traceback (most recent call last): File "zanata_users.py", line 145, in <module> data = collect_zanata_language_and_members() File "zanata_users.py", line 120, in collect_zanata_language_and_members for role, user_id in zanata.iter_language_members(member_url): File "zanata_users.py", line 51, in iter_language_members span_txt = user.find('span', {'class': 'list__item__meta'}).text AttributeError: 'NoneType' object has no attribute 'text' To manage notifications about this bug go to: https://bugs.launchpad.net/openstack-i18n/+bug/1670725/+subscriptions
Reviewed: https://review.openstack.org/442597 Committed: https://git.openstack.org/cgit/openstack/i18n/commit/?id=99b4f6e2aedb56ec706... Submitter: Jenkins Branch: master commit 99b4f6e2aedb56ec706906da8be54e24858497b7 Author: Akihiro Motoki <motoki@da.jp.nec.com> Date: Tue Mar 7 16:03:37 2017 +0000 Fix zanata_users.py to support Zanata 3.9.6 HTML of individual language page was changed in Zanata 3.9.6. This commit catches up with the change. Closes-Bug: #1670725 Change-Id: I77df5c1f4b716b395f0f686b6a9e2e48649bedcf ** Changed in: openstack-i18n Status: In Progress => Fix Released -- You received this bug notification because you are a member of OpenStack I18n Core Team, which is subscribed to openstack i18n. https://bugs.launchpad.net/bugs/1670725 Title: zanata_users.py does not work with new Zanata (3.9.6) Status in openstack i18n: Fix Released Bug description: zanata_users.py does not work with Zanata 3.9.6. zanata_users.py parses the generated web pages, so there is no surprise after upgrading zanata. ubuntu@sheep6:~/tmp/i18n/tools/zanata (master)[15:23:51]$ python zanata_users.py Retreiving language list Getting member list from language el member_url=/language/view/el?dswid=-5508 Traceback (most recent call last): File "zanata_users.py", line 145, in <module> data = collect_zanata_language_and_members() File "zanata_users.py", line 120, in collect_zanata_language_and_members for role, user_id in zanata.iter_language_members(member_url): File "zanata_users.py", line 51, in iter_language_members span_txt = user.find('span', {'class': 'list__item__meta'}).text AttributeError: 'NoneType' object has no attribute 'text' To manage notifications about this bug go to: https://bugs.launchpad.net/openstack-i18n/+bug/1670725/+subscriptions
participants (2)
-
Akihiro Motoki
-
OpenStack Infra