[OpenStack-I18n] [Bug 1670725] [NEW] zanata_users.py does not work with new Zanata (3.9.6)

Akihiro Motoki 1670725 at bugs.launchpad.net
Tue Mar 7 15:24:39 UTC 2017


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 at 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 at 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



More information about the OpenStack-I18n mailing list