[telepathy-python/master] Add the targetid to returned properties if not present
Olivier Le Thanh Duong
olivier at lethanh.be
Fri Dec 4 07:54:55 PST 2009
---
src/server/conn.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/server/conn.py b/src/server/conn.py
index 8f26728..f976223 100644
--- a/src/server/conn.py
+++ b/src/server/conn.py
@@ -492,6 +492,11 @@ class ConnectionInterfaceRequests(
# Check the supplied TargetHandle is valid
self.check_handle(target_handle_type, target_handle)
+ target_id = self._handles[target_handle_type,\
+ target_handle].get_name()
+ altered_properties[CHANNEL_INTERFACE + '.TargetID'] = \
+ target_id
+
altered_properties[CHANNEL_INTERFACE + '.Requested'] = True
return altered_properties
--
1.5.6.5
More information about the telepathy-commits
mailing list