[Zope] referring to previous directories using references? (../, ./, etc)

Kevin Howe khowe@performance-net.com
Sun, 2 Apr 2000 16:17:41 -0300


How do you refer to previous directories in ZOPE?

On a filesystem you would use references:

    Current Directory    ./
    Previous Directory ../

but these don't seem to work with ZOPE.

I have a structure like this:

    ZClass1
        |
        --- Folder
                |
                --- ZClass2
                        |
                        --- DTML Method or Document

Sometime ZClass2 is inside ZClass1, and sometimes it's on it's own. I'd like
to be able to say:

        # check if the object two levels up is a ZClass1 instance

        <!--#with "../../"-->
            <!--#if meta_type == "ZClass1"-->
                    # do this
            <!--#/if-->
        <!--#/with-->

Anyone know how I can go about this?

kh