[Zope] Zope 2.5 and TransparentFolder incompatibility

Howard Hansen zope@halfmagic.com
Mon, 10 Jun 2002 14:32:13 -0700


Thanks for the response, but no, it's not that.  Transparent Folders work
with either DTML Documents or Methods -- at least under Zope 2.4 & prior.

I did a quick test, and it confirms that a DTML Method has exactly the same
problem as a Document.  Has anyone else gotten TransparentFolders to work
with Zope 2.5?

Howard

----- Original Message -----
From: "Dirk Datzert" <dirk.datzert@rasselstein-hoesch.de>
To: "Howard Hansen" <zope@halfmagic.com>
Cc: <zope@zope.org>; <ct@gocept.com>
Sent: Monday, June 10, 2002 1:53 PM
Subject: Re: [Zope] Zope 2.5 and TransparentFolder incompatibility


> Hi,
>
> use DTML-Method for index_html. That should be the problem.
>
> DTML-Document have it's own namespace. So 'hidden' is in the namespace
> of the transparent folder, but 'index_html' looking for 'hidden' in the
> namespace of 'index_html' and not in the namespace of the parent folder.
>
> Regards,
> Dirk
>
> Howard Hansen schrieb:
> >
> > Sorry, reposting because I screwed up the thread with my digest subject!
> >
> > I'm running Zope 2.5.1 under Debian Woody and the latest version of
> > TransparentFolders that I could find on zope.org (0.3.2).
> >
> > I just created a simple test case:
> >
> >         /test/          << folder
> >             tf/         << transparent folder
> >                 hidden  << dtml method
> >             index_html  << dtml document
> >
> > index_html contains only "<dtml-var hidden>"
> >
> > Using Zope 2.4.2 under Debian Woody, I see the text contained in hidden
when
> > I view index_html.  Under Zope 2.5.1, I get the error...
> >
> > Error Type: KeyError
> > Error Value: hidden
> >
> > ...with the following traceback...
> >
> > Traceback (innermost last):
> >   File /usr/lib/zope/lib/python/Products/Hotfix_2002-04-15/__init__.py,
line
> > 51, in publish_module
> >   File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 114, in
publish
> >   File /usr/lib/zope/lib/python/Zope/__init__.py, line 159, in
> > zpublisher_exception_hook
> >     (Object: t)
> >   File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 98, in
publish
> >   File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply
> >     (Object: index_html)
> >   File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 39, in
> > call_object
> >     (Object: index_html)
> >   File /usr/lib/zope/lib/python/OFS/DTMLDocument.py, line 127, in
__call__
> >     (Object: index_html)
> >   File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 473,
in
> > __call__
> >     (Object: index_html)
> > KeyError: (see above)
> >
> > ...when I try to view index_html.
> >
> > Any idea why?
> >
> > Thanks!
> >
> > Howard Hansen
> >
> > ----- Original Message -----
> > > Message: 20
> > > Date: Mon, 10 Jun 2002 09:06:16 +0200
> > > From: Christian Theune <ct@gocept.com>
> > > To: zope@zope.org
> > > Subject: Re: [Zope] Zope 2.5 and TransparentFolder incompatibility
> > > Organization: gocept gmbh & co. kg <mail@gocept.com>
> > >
> > > Hi.
> > >
> > > Do you have a more specific problem? I am using the latest
> > TransparentFolder product
> > > with Zope 2.5.0 as well as 2.5.1 without any problems (including
Session
> > Tracking).
> > >
> > > * Howard Hansen <howardh@halfmagic.com> [020610 06:40]:
> > > > Google doesn't tell me anything definitive, but it seems that the
> > laudable
> > > > TransparentFolder product is incompatible with Zope 2.5.  Something
> > about a
> > > > conflict with session tracking?  Is this so?  Do I have to muck up
my
> > > > management screens with hundreds of little files?  Does anyone have
a
> > patch
> > > > or an alternative?
> > >
> > > Regards
> > >
> > > Christian
> > >
> > > --
> > > Christian Theune - ct@gocept.com
> > > gocept gmbh & co.kg - schalaunische strasse 6 - 06366 koethen/anhalt
> > > tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981
> > >
> > > reduce(lambda x,y:x+y,[chr(ord(x)^42) for x in 'zS^BED\nX_FOY\x0b'])
> >
> > Indeed it does.
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )