Exemplo n.º 1
0
    def access(self, id, ext):
        id = id[18:]
        ext = getRevNss(str(ext))
        if ext == "core":
            ext = ""
        else:
            ext = ext + "."

        site = args.site
        scheme = "http://"
        if site.startswith("http://"):
            site = site[7:]
        elif site.startswith("https://"):
            site = site[8:]
            scheme = "https://"
        #log.info("%s  %s  %s  %s" % (scheme,ext,site,id))
        path = "%s%s%s/%s" % (scheme, ext, site, id)
        self.fetch(path)
Exemplo n.º 2
0
 def access(self, id, ext):
     if id.startswith("http://schema.org"):
         id = id[18:]
     ext = getRevNss(str(ext))
     if ext == "core":
         ext = ""
     else:
         ext = ext + "."
         
     site = args.site
     scheme = "http://"
     if site.startswith("http://"):
         site = site[7:]
     elif site.startswith("https://"):
         site = site[8:]
         scheme = "https://"
     #log.info("%s  %s  %s  %s" % (scheme,ext,site,id))
     path = "%s%s%s/%s" % (scheme,ext,site,id)
     self.fetch(path)