[Zope] folders with same names (newbie question)
Casey Duncan
casey@zope.com
Tue, 14 May 2002 09:25:54 -0400
What type of object is index_html and what is the code for it?
-Casey
On Tuesday 14 May 2002 05:23 am, Marie Robichon allegedly wrote:
> First of all, thanks for your patience for reading this long post......=
=2EI=20
> posted it twice a while ago but had no replies so am trying again......
>=20
> Our development site has approx the following structure:
>=20
> index_html
> - About
> |
> Guided Tour
> |
> Machine
> - Jobs
> - Beamlines
> - Machine
> |
> Parameters
> etc
>=20
>=20
> 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.
>=20
> Local navigation is generated via a treemenu which
> generates absolute_urls.
>=20
> However we get the following error when clicking a link in the treemenu=
, to=20
> http://mysite/About/GuidedTour
>=20
> Error Type: KeyError
> Error Value: Parameters
>=20
> Traceback (innermost last):
> File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.p=
y,=20
> line 150, in publish_module
> File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.p=
y,=20
> line 114, in publish
> File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/Zope/__init__.py, li=
ne=20
> 158, in
> zpublisher_exception_hook
> (Object: GuidedTour)
> File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.p=
y,=20
> line 98, in publish
> File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py=
,=20
> line 88, in mapply
> (Object: index_html)
> File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.p=
y,=20
> line 39, in call_object
> (Object: index_html)
> File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, l=
ine=20
> 127, in __call__
> (Object: index_html)
> File=20
> /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Strin=
g.py,=20
> line 473, in __call__
> (Object: index_html)
> File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, l=
ine=20
> 120, in __call__
> (Object: javascript)
> File=20
> /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Strin=
g.py,=20
> line 473, in __call__
> (Object: javascript)
> File=20
> /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_With.=
py,=20
> line 76, in render
> (Object: Machine)
> File=20
> /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_With.=
py,=20
> line 60, in render
> (Object: Parameters)
> KeyError: (see above)
>=20
> I presume that Zope moves up to the root to pick up the index_html then=
=20
> moves back down until it finds the first "Machine" folder, which is not=
the=20
> one we want then raises an error.
>=20
> Does this mean that in Zope no two folders can have the same id? This w=
ould=20
> cause problems when our contributors edit their parts of our site. Is t=
here=20
> a way around this other than naming the folders differently? I remembe=
r=20
> seeing something about tpId somewhere....
>=20
> TIA
>=20
> Marie Robichon
> Web Task Force
> European Synchrotron Radiation Facility
> Grenoble
> France
>=20
>=20