[Bugs] #315 UNSP: add a way to add new contacts not seen by the PS
SugarLabs Bugs
bugtracker-noreply at sugarlabs.org
Mon Mar 9 09:41:56 EDT 2009
#315: add a way to add new contacts not seen by the PS
------------------------------------------+---------------------------------
Reporter: tomeu | Owner: marcopg
Type: enhancement | Status: new
Priority: Unspecified by Maintainer | Milestone: 0.86
Component: sugar | Version: Unspecified
Severity: Unspecified | Resolution:
Keywords: | Distribution: Unspecified
Status_field: Unconfimed |
------------------------------------------+---------------------------------
Comment(by gdesmott):
Some comments:
- imports should be done at the begin of the file
- there should have UI asking for the identifier to add (instead of
hardcoding "tomeu-test at jabber.sugarlabs.org")
- UI should also list the existing TP connections and let the user choose
the one to which the contact have to be added (instead of taking the first
connection from conn_watcher.get_connections())
- You should use the new Requests API. Something like that:
channel_path, props =
connection[CONNECTION_INTERFACE_REQUESTS].EnsureChannel(
CHANNEL_INTERFACE + ".ChannelType": CHANNEL_TYPE_CONTACT_LIST,
CHANNEL_INTERFACE + ".TargetHandleType": CONNECTION_HANDLE_TYPE_LIST,
CHANNEL_INTERFACE + ".TargetID": 'subscribe')
So you don't need to request the subscribe handle any more.
- You should probably add the contact to the 'publish' contact list too.
Maybe that should be done once the contact accepted your request but we
can start like that for now.
See also https://dev.laptop.org/ticket/8841 where Rob described what
should be done to properly manager buddy subscriptions.
--
Ticket URL: <http://dev.sugarlabs.org/ticket/315#comment:3>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list