Rephrasing the call buttons
[theonering] / hand_tests / presence.py
index 5339038..52b6c9f 100755 (executable)
@@ -27,7 +27,7 @@ from telepathy.constants import CONNECTION_STATUS_CONNECTED, \
 DBUS_PROPERTIES = 'org.freedesktop.DBus.Properties'
 
 
-class Example (object):
+class Example(object):
 
        def __init__ (self, account, password, forward):
                """e.g. account  = 'bob@example.com/test'
@@ -43,9 +43,9 @@ class Example (object):
 
                # get the parameters required to make a Jabber connection
                # Begin Example 2-3
-               cm[CONNECTION_MANAGER].RequestConnection('sip',
+               cm[CONNECTION_MANAGER].RequestConnection('gv',
                        {
-                               'username':  account,
+                               'account':  account,
                                'forward':  forward,
                                'password': password,
                        },