What steps will reproduce the problem?
1. create a profile without friends
2. try to fetch friends
3. ???
i know its a strange case, but it happened with me, my client had a profile
without friends :/
traceback of the error:
Traceback (most recent call last):
File "/base/data/home/apps/ccapp-
veja/1.336591347300451121/veja_orkut/views.py", line 36, in new_method
data = simplejson.dumps(method(*args,**kwargs),ensure_ascii=False)
File "/base/data/home/apps/ccapp-
veja/1.336591347300451121/veja_orkut/views.py", line 373, in get_user_data
activities = get_friends_activities(profile.profile_id,many=7)
File "/base/data/home/apps/ccapp-
veja/1.336591347300451121/veja_orkut/views.py", line 69, in
get_friends_activities
for friend in orkut_api.get_app_friends(cid):
File "/base/data/home/apps/ccapp-veja/1.336591347300451121/orkut.py",
line 26, in get_app_friends
return self.container.send_request(people_request)
File "/base/data/home/apps/ccapp-
veja/1.336591347300451121/opensocial/__init__.py", line 159, in
send_request
return self._send_rest_request(request)
File "/base/data/home/apps/ccapp-
veja/1.336591347300451121/opensocial/__init__.py", line 190, in
_send_rest_request
return request.process_json(json)
File "/base/data/home/apps/ccapp-
veja/1.336591347300451121/opensocial/request.py", line 126, in process_json
return data.Collection.parse_json(json, data.Person)
File "/base/data/home/apps/ccapp-
veja/1.336591347300451121/opensocial/data.py", line 132, in parse_json
for fields in json_list:
TypeError: 'NoneType' object is not iterable
Original issue reported on code.google.com by arkanj...@gmail.com on 30 Sep 2009 at 3:57
Original issue reported on code.google.com by
arkanj...@gmail.com
on 30 Sep 2009 at 3:57