[PEAK] NameError in config/load_zconfig.py

Phillip J. Eby pje at telecommunity.com
Sat Oct 16 21:30:38 EDT 2004


At 03:12 AM 10/17/04 +0300, Andy Legkiy wrote:
> >>>>>
>Index: load_zconfig.py
>===================================================================
>RCS file: /cvsroot/PEAK/src/peak/config/load_zconfig.py,v
>retrieving revision 1.15
>diff -u -r1.15 load_zconfig.py
>--- load_zconfig.py     8 Oct 2004 16:38:00 -0000       1.15
>+++ load_zconfig.py     16 Oct 2004 23:47:15 -0000
>@@ -97,7 +97,7 @@
>
>      def interpret(self, filename):
>          factory = config.IStreamSource(filename).getFactory(self)
>-        ob, handler = self.loadFile(factory.open('t'), str(url))
>+        ob, handler = self.loadFile(factory.open('t'))

Not exactly.  It should be:

         ob, handler = self.loadFile(factory.open('t'), factory.address)

So that the correct address is passed through to the lower-level ZConfig 
mechanisms.  Without it, relative URLs in the ZConfig file won't work right.

But thanks for the error report.  It's now fixed in CVS.




More information about the PEAK mailing list