Re: getSlice error in wiki folder with many objects?
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? --- In zope@yahoogroups.com, Bill Seitz <fluxent@y...> wrote:
Well, I put in a dtmlrequest method, and it says
URL 'http://webseitz.fluxent.com/wiki/dtmlrequest'
so I guess URL must be a string.
see http://webseitz.fluxent.com/wiki/ZopeGetSliceBug
--- Troy Farrell <troy@e...> wrote:
One thing that might help: create a dtml method
in
a folder above this one with this one line in it:
<dtml-var REQUEST>
Then visit
http://server/folderparent/foldernotworking/dtmlrequest
and see what it tells you. Is URL a string (I hope so...)
Troy
[1]
http://cvs.zope.org/*checkout*/Zope2/lib/python/DocumentTemplate/DT_Util.py?...
Bill Seitz wrote:
I thought maybe the problem below was related to running zope 2.3.2. But experimenting on my
laptop
with v2.5.1 doesn't seem to help, either. This makes it impossible to change object properties, etc.
------
I get this when I try to view a particular folder through the ZMI.
I suspect I have too many items in the folder.
I'm running zope 2.3.2, and don't want to change right now (until I make some zwiki code changes).
Is there a workaround? Or a hack to add/copy a DTML document into the folder?
Error Type: AttributeError Error Value: __getslice__
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
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...
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
Bill Seitz wrote:
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.
Chances are somebody named an object in that folder "URL" and DTML's stupid name space games are causing you pain. A great example of why DTML is a dead end. To fix, try replacing the expr with: REQUEST['URL'][-(_.len(action)):]==action or REQUEST['URL'][-17:]=='/manage_workspace' and _['sequence-start'] -- Jamie Heilman http://audible.transient.net/~jamie/ "I was in love once -- a Sinclair ZX-81. People said, "No, Holly, she's not for you." She was cheap, she was stupid and she wouldn't load -- well, not for me, anyway." -Holly
participants (3)
-
Bill Seitz -
Chris Withers -
Jamie Heilman