TB when removing contact
Traceback (most recent call last):
File "/home/segundo/Projects/gajim/trunk.old/src/roster_window.py", line 1666, in on_roster_treeview_button_press_event
return True
File "/home/segundo/Projects/gajim/trunk.old/src/roster_window.py", line 1635, in show_appropriate_context_menu
elif type == 'account':
File "/home/segundo/Projects/gajim/trunk.old/src/roster_window.py", line 1220, in make_contact_menu
if len(contacts) > 1: # sevral resources
TypeError: len() of unsized object
first I had problems to add this contact to my roster. Here are all steps, some of which maybe bugs, but the final result is the above TB
- Contact is not in my roster
- When I login I receive message from him.
- It doesn't appear in any group (even with show offline on)
- I try to send message to this contact (by manually typing the jid)
- now this contact appears in my 'not in the roster' group
- I send subscription 'to' and 'from', but nothing is printed on the debug output, so no stanza is actually sent to the server. It is eigther a bug, or we should disable 'to' and 'from' menuitems.
- I found that the only way to subscribe to this contact is by adding it to my roster (maybe it is a bug?)
- I added it and sent subscription 'to'. At this time I cannot send subscription 'from', nor remove subscription 'to', because the menuitems for that are diabled.
- The contact added me to his roster and subscription is now 'both' (this is fine)
- Right click -> remove contact from roster and the above TB is raised.
After that:
- Tooltip over this contact is like tooltip over systray, it is only one row: [STATUS IMG] ACCOUNT_NAME where ACCOUNT_NAME is the name of the account, in which this contact belongs.
- I cannot do right click for this contact
I think we should check and fix all possible subscription problems, because it is a very common situation when someone sends you a chat message, before subscription request. In this situation there is something wrong in Gajim.