Hello,
I am trying to extract user names from the review_request.target_people but
I receive an unexpected exception.
review_requests =
rb_conn.get_root().get_review_requests(time_added_from=time_added,
status='pending',max_results=1)
for rr in review_requests:
for reviewer in rr.target_people:
print reviewer
Traceback (most recent call last):
File "rbpoller.py", line 129, in <module>
send_rb_fresh_emails()
File "rbpoller.py", line 97, in send_rb_fresh_emails
for reviewer in rr.target_people:
File "build/bdist.linux-x86_64/egg/rbtools/api/transport/sync.py", line
142, in next
File "build/bdist.linux-x86_64/egg/rbtools/api/transport/sync.py", line
162, in __getitem__
File "build/bdist.linux-x86_64/egg/rbtools/api/transport/sync.py", line
71, in wrap
TypeError: __init__() keywords must be strings
My understanding is that the ResourceListField should be iterable. Am I
doing something incorrectly?
Cheers,
M
--
Want to help the Review Board project? Donate today at
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/reviewboard?hl=en
---
You received this message because you are subscribed to the Google Groups
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.