[Zope] verifying existence

Steven Turoff steveturoff@home.com
Fri, 04 Jan 2002 16:53:17 -0600


At 07:50 AM 01/04/2002, Oleg Broytmann wrote:
>On Fri, Jan 04, 2002 at 06:23:08AM -0600, Steven Turoff wrote:
> > <dtml-if "thisPage exists">
>
>    <dtml-if "_.hasattr('thisPage')">'

I'm still confused as to how I obtain thisPage. For example, the following 
files and folders exist:

/index_html
/services/

If I go to the URL www.mysite.com/services/index_html, I will be shown 
/index_html because of acquisition. If I use the above advice, I get 
<dtml-if "_.hasattr('index_html')">. However, if I was on a page such as 
/services/foo_html, the code would be <dtml-if "_.hasattr('foo_html')">. 
So, the question is, how do I get the name of the document being requested?

Thanks,

steve