Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Development Team/Almanac/Sugar.presence
(view source)
Revision as of 20:37, 6 January 2010
14 bytes removed
,
20:37, 6 January 2010
m
no edit summary
Line 110:
Line 110:
def _new_tube_cb(self, id, initiator, type, service, params, state):
def _new_tube_cb(self, id, initiator, type, service, params, state):
−
if
(
type == telepathy.TUBE_TYPE_DBUS and service == SERVICE
)
:
+
if type == telepathy.TUBE_TYPE_DBUS and service == SERVICE:
if state == telepathy.TUBE_STATE_LOCAL_PENDING:
if state == telepathy.TUBE_STATE_LOCAL_PENDING:
#Accept the new tube that has been created
#Accept the new tube that has been created
Line 476:
Line 476:
assert isinstance(addr[0], str)
assert isinstance(addr[0], str)
assert isinstance(addr[1], (int, long))
assert isinstance(addr[1], (int, long))
−
assert
addr[1] >
0
and
addr[1] < 65536
+
assert 0
<
addr[1] < 65536
port = int(addr[1])
port = int(addr[1])
Newacct
6
edits