[Zope] Folders with the same name (newbie question)

Marie ROBICHON robichon@esrf.fr
Mon, 22 Apr 2002 10:02:37 +0200


--=====================_3188645==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

First of all, thanks for your patience for reading this long post.......I 
posted it a while ago but had no replies so am trying again......

Our development site has approx the following structure:

index_html
- About
       |
       Guided Tour
             |
             Machine
- Jobs
- Beamlines
- Machine
        |
        Parameters
etc


Inside each folder is a contents_html document. The index_html is at
the root and displays this content under a generic banner with drop
down menus (Javascript) with links to the top level folders and their
subfolders.

Local navigation is generated via a treemenu in each top level folder
with the name attribute as the id of the top level folder, and which
generates absolute_urls.

However we get the following error when clicking a link in the treemenu, to 
http://mysite/About/GuidedTour

Error Type: KeyError
Error Value: Parameters

Traceback (innermost last):
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, 
line 150, in publish_module
File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, 
line 114, in publish
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/Zope/__init__.py, line 
158, in
zpublisher_exception_hook
  (Object: GuidedTour)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, 
line 98, in publish
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, 
line 88, in mapply
(Object: index_html)
File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, 
line 39, in call_object
(Object: index_html)
File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 
127, in __call__
(Object: index_html)
  File 
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py, 
line 473, in __call__
(Object: index_html)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, 
line 120, in __call__
  (Object: javascript)
  File 
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py, 
line 473, in __call__
(Object: javascript)
File 
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_With.py, 
line 76, in render
  (Object: Machine)
File 
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_With.py, 
line 60, in render
  (Object: Parameters)
KeyError: (see above)

I presume that Zope moves up to the root to pick up the index_html then 
moves back down until it finds the first "Machine" folder, which is not the 
one we want then raises an error.

Does this mean that in Zope no two folders can have the same id?
This would cause problems when our contributors edit their parts of
our site. Is there a way around this other than naming the folders
differently?

TIA

Marie Robichon
Web Task Force
European Synchrotron Radiation Facility
Grenoble
France



--=====================_3188645==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
First of all, thanks for your patience for reading this long post.......I
posted it a while ago but had no replies so am trying again......<br>
<br>
Our development site has approx the following structure:<br>
<br>
index_html<br>
- About<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Guided Tour<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Machine<br>
- Jobs<br>
- Beamlines<br>
- Machine<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Parameters<br>
etc<br>
<br>
<br>
Inside each folder is a contents_html document. The index_html is 
at<br>
the root and displays this content under a generic banner with drop<br>
down menus (Javascript) with links to the top level folders and
their<br>
subfolders.<br>
<br>
Local navigation is generated via a treemenu in each top level
folder<br>
with the name attribute as the id of the top level folder, and 
which<br>
generates absolute_urls.<br>
<br>
However we get the following error when clicking a link in the treemenu,
to
<a href="http://mysite/About/GuidedTour" eudora="autourl"><font color="#0000FF"><u>http://mysite/About/GuidedTour</a><br>
<br>
</u></font>Error Type: KeyError<br>
Error Value: Parameters<br>
<br>
Traceback (innermost last):<br>
&nbsp;File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line
150, in publish_module<br>
File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py,
line 114, in publish<br>
&nbsp;File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/Zope/__init__.py, line 158,
in<br>
zpublisher_exception_hook<br>
&nbsp;(Object: GuidedTour)<br>
&nbsp;File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line
98, in publish<br>
&nbsp;File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line
88, in mapply<br>
(Object: index_html) <br>
File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py,
line 39, in call_object<br>
(Object: index_html)<br>
File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py,
line 127, in __call__<br>
(Object: index_html)<br>
&nbsp;File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py,
line 473, in __call__<br>
(Object: index_html)<br>
&nbsp;File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line
120, in __call__<br>
&nbsp;(Object: javascript)<br>
&nbsp;File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py,
line 473, in __call__<br>
(Object: javascript)<br>
File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_With.py,
line 76, in render<br>
&nbsp;(Object: Machine)<br>
File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_With.py,
line 60, in render<br>
&nbsp;(Object: Parameters)<br>
KeyError: (see above)<br>
<br>
I presume that Zope moves up to the root to pick up the index_html then
moves back down until it finds the first &quot;Machine&quot; folder,
which is not the one we want then raises an error.<br>
<br>
Does this mean that in Zope no two folders can have the same id?<br>
This would cause problems when our contributors edit their parts of<br>
our site. Is there a way around this other than naming the folders<br>
differently?<br>
<br>
TIA<br>
<br>
Marie Robichon<br>
Web Task Force<br>
European Synchrotron Radiation Facility<br>
Grenoble<br>
France<br>
<br>
<br>
</html>

--=====================_3188645==_.ALT--