code: def port(self, value):
          
  
          self._port = value
          # If port is None we remove the element and don't write it to XML
          if value is None:
              try:
                  del self._connectionXML.attrib['port']
              except KeyError:
                  pass
          else:
              self._connectionXML.set('port', value)
docs: Set the connection's port property.
  
          Args:
              value:  New port value. String.
  
          Returns:
              Nothing.