[Bug] Name clash for "URL" in "manage_tabs" (was: RE: [Zope] Problem with ZWiki, manage, Attribute Error, __getslic e__)
Dieter Maurer
dieter@handshake.de
Thu, 4 Apr 2002 23:02:23 +0200
PAULICKA,CHRISTOPHER HP-PaloAlto,ex1 writes:
> ....
> (Object: manage_tabs)
> File C:\PROGRA~1\PAULIC~2\lib\python\DocumentTemplate\DT_With.py, line
> 146, in render
> (Object: _(manage_options=filtered_manage_options()))
> File C:\PROGRA~1\PAULIC~2\lib\python\DocumentTemplate\DT_In.py, line 713,
> in renderwob
> File C:\PROGRA~1\PAULIC~2\lib\python\DocumentTemplate\DT_In.py, line 713,
> in renderwob
> (Object: manage_options)
> File C:\PROGRA~1\PAULIC~2\lib\python\DocumentTemplate\DT_Util.py, line
> 334, in eval
> (Object: URL[-(_.len(action)):]==action or
> URL[-17:]=='/manage_workspace' and _['sequence-start'])
> (Info: action)
> File <string>, line 0, in ?
> File C:\PROGRA~1\PAULIC~2\lib\python\DocumentTemplate\DT_Util.py, line
> 174, in careful_getslice
> AttributeError: (see above)
>
> Doesn't really mean much to me...
Actually, it means a lot!
The error is in "manage_tabs". It's almost surely caused
by a name clash for the name "URL".
"manage_tabs" expects "URL" to be the URL from REQUEST.
Apparently, someone was able to create either an attribute
or an instance named URL. This object is acquired and
therefore takes precedence over the REQUEST's URL.
Obviously, the new object named URL does not support "__getslice__".
The problem will go away, when you edit "App/dtml/manage_tabs.dtml"
and replace all occurrences of "URL" by "REQUEST.URL".
This is a bug. Please file a bug report to
<http://collector.zope.org>
Dieter