[Zope] Re: Page Templates problem

Wade Leftwich wade@lightlink.com
Wed, 6 Mar 2002 07:36:56 -0500


Somehow with IE5.0 you don't get a good "here" object in PTs or "context"=
 in=20
scripts. I have not explored it further, because you can't downgrade IE=20
without reinstalling Windows. I'm guessing it has something to do with ca=
se=20
or path separators in the request sent by the browser.

As a workaround, I have had pretty good luck in scripts using=20
REQUEST.PARENTS[0] instead of context. I suppose that might work in a=20
template -- try python:request.PARENTS[0]

-- Wade

On Wednesday 06 March 2002 07:33, Agata Cruickshank wrote:
> Indeed, I was using Explorer 5.0, and I cannot reproduce the error in
> version 5.5.
>
> I've managed to narrow down the error to the ptAdd.zpt and ptEdit.zpt i=
n
> Products/PageTemplates/www directory. It appears that Explorer 5 object=
s to
>   'tal:replace=3D"structure here/manage_page_header"' and '<h1
> tal:replace=3D"structure here/manage_page_footer">Footer</h1>'. I can r=
eplace
> it with <dtml-var manage_page_header> and <dtml-var manage_page_footer>=
 and
> get the add page to work. Unfortunately, I don't know how to replace=20
> 'tal:define=3D"body request/other/text | request/form/text | here/read"=
' in
> edit page (here/read raises an error) and anyway it is probably not a g=
ood
> idea to alter these files.
>
> I'll just upgrade my browser and hope that everyone else working with Z=
ope
> here will be willing to do the same. Many thanks for your help.
>
> Agata
> -----Original Message-----
> From: Wade Leftwich [mailto:wade@lightlink.com]
> Sent: 05 March 2002 16:55
> To: zope@zope.org; a.cruickshank@ccs.bbk.ac.uk
> Subject: Re: Page Templates problem
>
> On Tuesday 05 March 2002 12:13, Agata wrote:
> > Message: 2
> > =A0 =A0Date: Tue, 5 Mar 2002 10:57:41 -0000
> > =A0 =A0From: Agata Cruickshank <a.cruickshank@ccs.bbk.ac.uk>
> > Subject: RE: Page Templates problem
> >
> > I'm using PageTemplates product version 1.4.1 with Zope 2.4.3. I get =
the
> > error message immediately when selecting create new Page Template opt=
ion
> > from the drop down selection box, so I do not get an option of enteri=
ng
> > Id or title. However if I try to create a new Page Template in Netsca=
pe
> > rather than Explorer it seems to work fine. If I try to edit this new
> > Page Template in Explorer I get the error message again.
> >
> > I'm not sure where "manage_page_header" can be found, but it appears =
that
> > Explorer cannot find a path to it, while Netscape can.
> >
> > Regards,
> > Agata
>
> Agata,
>
> Are you using IE 5.0? It is horribly buggy and is known to have problem=
s
> with the Zope Mgmt Interface. If you must use IE, try 5.5. But Opera is
> really very nice.
>
> Wade Leftwich
> Ithaca, NY