[Zope-dev] Fix for ZPublisher.Client
   
    Hunter Kelly
     
    retnuh@oniva.com
       
    Wed, 19 Jan 2000 17:57:01 +0000
    
    
  
Hi, I was having trouble using the load_site script with directories
that had spaces in the names.
Turns out that ZPublisher.Client.Function does not quote the url
when it does the post.
If there are problems with doing this, or there is a better way,
please let me know.  Please CC me on replies as I am not
on the Zope-Dev mailing list.
Hunter Kelly
--- Client.py.orig      Wed Jan 19 17:51:48 2000
+++ Client.py   Wed Jan 19 17:50:52 2000
@@ -263,7 +263,7 @@
                 else: d[k]=v
             else: d[k]=v
-        rq=[('POST %s HTTP/1.0' % self.rurl),]
+        rq=[('POST %s HTTP/1.0' % quote(self.rurl)),]
         for n,v in self.headers.items():
             rq.append('%s: %s' % (n,v))
         if self.username and self.password: