Development Team/Almanac/Sugar.presence: Difference between revisions
m fix camelcase links |
mNo 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 | 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]) | ||