'Verify url'

def verify_url(self, url):

    if url:
        if ('://' not in url):
            url = (u'http://%s' % url)
        url_fields = list(urlparse.urlsplit(url))
        if (not url_fields[2]):
            url_fields[2] = '/'
            url = urlparse.urlunsplit(url_fields)
    return url
