[PEAK] NameError in config/load_zconfig.py

Andy Legkiy easy at ank-sia.com
Sat Oct 16 20:12:27 EDT 2004


>>>>>
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'))
         binding.suggestParentComponent(self.getCommandParent(),None,ob)
         return self.getSubcommand(ob)
<<<<<

To prevent this error.

>>>>>
Traceback (most recent call last):
...
  File "/usr/local/lib/python2.3/site-packages/peak/config/load_zconfig.py", line 100, in interpret
    ob, handler = self.loadFile(factory.open('t'), str(url))
NameError: global name 'url' is not defined
<<<<<

--
Cheers,
        Andy Legkiy



More information about the PEAK mailing list