Development Team/Almanac/Sugar.presence: Difference between revisions

Dfarning (talk | contribs)
m fix camelcase links
Newacct (talk | contribs)
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 (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])