Advertisement
Guest User

Untitled

a guest
Apr 19th, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. oem_list = None
  2. if options.customer_filter:
  3. # cache this list so we're not fetching something huge
  4. # everytime in the loop
  5. oem = lp.people['canonical']
  6. oem_list = list(oem.members_details)
  7. ...
  8.  
  9. if options.customer_filter is False:
  10. tags = update_tags(tags, options.update_from, options.update_to)
  11. bug_updated = True
  12. else:
  13. # Everyone outside of this set should be an OEM customer
  14. assignee = task.assignee_link
  15. print "id %s assigned to %s" % (bug.id, assignee)
  16. if assignee is None or assignee not in oem_list:
  17. tags = update_tags(tags, options.update_from, options.update_to)
  18. bug_updated = True
  19. else:
  20. bug_updated = False
  21.  
  22. === output ===
  23.  
  24. <11:40:14>tmp$ ./manz_lp_retag.py --from-tag waiting-for-oem --to-tag oem-verification-pending --not-canonical --dry-run --state 'Incomplete (with response)' --state 'Incomplete (without response)' --state 'Incomplete'
  25. id 720891 assigned to None
  26. id:720891, owner:https://api.launchpad.net/1.0/~gilbert-hyatt, state:Incomplete, old_tags:[u'waiting-for-oem'], new_tags:['oem-verification-pending']
  27. id 971999 assigned to https://api.launchpad.net/1.0/~binh-t-vu
  28. ERROR: 'unicode' object has no attribute 'self_link'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement