[Zope] path...

Andrew Williams ajwms@hotmail.com
Wed, 4 Apr 2001 14:50:19 -0400


----- Original Message -----
From: "After Dark" <afterz@zipmail.com>
To: <zope@zope.org>
Sent: Wednesday, April 04, 2001 2:35 PM
Subject: [Zope] path...


> Hello!!
>
> Could somebody tell me if this would work? How should I do
> to make it work?
>
> <dtml-call "REQUEST.set
('path_dir','http://medsaude.lab.bsi.com.br/especialidade')">
> <dtml-with path_dir>
> <dtml-call expr="manage_addFolder(
>              id=pasta, title=titulo)">
> </dtml-with>
>
No, this won't work

Try something like this (untested):

<dtml-with expr="PARENTS[0].restrictedTraverse('especialidade')">
  <dtml-call expr="manage_addFolder(id='pasta',title='titulo')">
</dtml-with>


You really should read some of the HowTo's, Zope Books, and the mailing list
(this question was answered a couple of weeks ago).

Also, check out Dieter's book:

http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html


Andrew