When I upgraded(?) to Python 2.2.2, I ran into the "failed to generate
a home document" problem. This has been discussed a bit on the list.

    The problem is with urlparse.urlunparse. They drastically changed the
way it works in 2.2.2. So how about we use the replacement already in
Url.py currently used for 'file' on windows? If we use that for 'plucker'
and 'file' protocol in all cases, all versions of python will have the
old behavior.

Like so...

--- Url.py.orig Thu Jun 14 13:59:41 2001
+++ Url.py  Sun Mar 16 20:28:18 2003
@@ -105,8 +105,9 @@
 
 ######################################################################
 # Replacement for the urlparse lib, because this is buggy on Windows #
+# And its behavior changed in Python 2.2.2 CRH
 ######################################################################
-def windows_file_urlunparse(protocol, host, path, params, query, fragment):
+def plucker_file_urlunparse(protocol, host, path, params, query, fragment):
     text = ''
     if protocol != '':
         text = text + protocol + ':' + path
@@ -155,8 +156,8 @@
             fragment = self._fragment
         else:
             fragment = ""
-        if sys.platform == 'win32' and self._protocol == 'file':
-            text = windows_file_urlunparse (self._protocol,
+        if self._protocol == 'plucker' or self._protocol == 'file':
+            text = plucker_file_urlunparse (self._protocol,
                                             self._host,
                                             self._path,
                                             self._params,
@@ -196,7 +197,7 @@
         else:
             fragment = ""
         if sys.platform == 'win32' and self._protocol == 'file':
-            text = windows_file_urlunparse ("",
+            text = plucker_file_urlunparse ("",
                                             "",
                                             self._path,
                                             self._params,


                                Chris

Christopher R. Hawks Software Engineer
Syscon Plantstar a Division of Syscon International
-------------------------------------------------------------------------
This customer comes into the computer store. "I'm looking for a mystery
Adventure Game with lots of graphics. You know, something realy 
challenging". "Well," replied the clerk, "have you tried Windows 98 ?"




_______________________________________________
plucker-list mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-list

Reply via email to