Logo Search packages:      
Sourcecode: harvestman version File versions  Download package

def HarvestMan::urlparser::HarvestManUrlParser::get_base_domain_with_port (   self,
  intranet = 0 
)

Return the base domain (server) with port number
appended to it, if the port number is not the
default for the current protocol 

Definition at line 681 of file urlparser.py.

00681                                                    :
        """ Return the base domain (server) with port number
        appended to it, if the port number is not the
        default for the current protocol """
        
        if intranet or ((self.protocol == 'http://' and int(self.port) != 80) \
                        or (self.protocol == 'https://' and int(self.port) != 443) \
                        or (self.protocol == 'ftp://' and int(self.port) != 21)):
            return self.get_base_domain() + ':' + str(self.port)
        else:
            return self.get_base_domain()
        


Generated by  Doxygen 1.6.0   Back to index