Development Team/Almanac/Sugar.presence: Difference between revisions
m fix camelcase links |
m moved Walter is a wanker 12/Almanac/Sugar.presence to Development Team/Almanac/Sugar.presence over redirect: revert |
||
| (4 intermediate revisions by 4 users not shown) | |||
| 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 | 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 | assert 0 < addr[1] < 65536 | ||
port = int(addr[1]) | port = int(addr[1]) | ||