def complete_url(self, url):
    """ Completes a given URL with this instance's URL base. """
    if self.base_url:
      return urlparse.urljoin(self.base_url, url)
    else:
      return url
def complete_url ( self , url ) : if self . base_url : return urlparse . urljoin ( self . base_url , url ) else : return url
Completes a given URL with this instance's URL base.