[Zope] Re: getSlice error in wiki folder with many objects?

Chris Withers chrisw@nipltd.com
Wed, 16 Jul 2003 08:28:09 +0100


Hi Bill,

Bill Seitz wrote:

> After trying to play with some debugging, I got tired
> of the headaches.
> 
> So I turned to zLOG, and tried to call it from with
> DT_Util.py, to find out the value of URL.
> 
> But I end up getting a "global name 'URL' is not
> defined" message. How can I work around this without
> having to rewrite chunks of internal Zope code?

This is the code causing the problem, right:

URL[-(_.len(action)):]==action or
URL[-17:]=='/manage_workspace' and
_['sequence-start'])

I know it's not much help, but in a simple mockup, it worked for me.
What's the context of all this? Just a normal DTML method?
What's action?

cheers,

Chris

PS: The above code looks pretty contorted :-S What is it you're trying to achieve?

PPS: DTML will lead you to many such head wrenching experiences, I'd strongly 
suggest moving to ZPT...