search for: myurlopener

Displaying 1 result from an estimated 1 matches for "myurlopener".

2010 Nov 05
3
Unable to create (and keep) guest
...kernelurl = installer + "/netboot/xen/vmlinuz" if xm_vars.env.get(''install-ramdisk''): ramdiskurl = xm_vars.env[''install-ramdisk''] else: ramdiskurl = installer + "/netboot/xen/initrd.gz" import urllib class MyUrlOpener(urllib.FancyURLopener): def http_error_default(self, req, fp, code, msg, hdrs): raise IOError("%s %s" % (code, msg)) urlopener = MyUrlOpener() try: print "Fetching %s" % kernelurl kernel, _ = urlopener.retrieve(kernelurl) prin...