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

Bill Seitz fluxent@yahoo.com
Wed, 16 Jul 2003 04:32:52 -0700 (PDT)


How ironic - this is ZMI code! 

This error occurs when I try to view a big folder
(thousands of zwiki pages), *or any of its individual
contents*. The particular URL I'm using as an example
is /manage_propertiesForm for the folder itself.

It happens with the same folder on 2 different
servers. Both are currently running v2.5.1, but it
started when each was running 2.3.2.

For more background see
<http://groups.yahoo.com/group/zope/message/113478>
<http://webseitz.fluxent.com/wiki/ZopeGetSliceBug>

--- Chris Withers <chrisw@nipltd.com> wrote:
> 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...
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com