[Zope] dtml-tree help
Chris McDonough
chrism@digicool.com
Mon, 05 Jun 2000 23:10:30 -0400
Pete Kazmier wrote:
>
> Hi,
>
> I think this is a simle question but I've been struggling for the last
> two days trying to get it to work. I have a heirarchy of folders
> (really a custom container class) and files (really a custom object).
> I want to emulate the Window's Explorer interface, left side of page
> occupied with a tree of the entire hierarchy, and the right side
> contains the details.
>
> Is this possible? Is it also possible to synchronize both views, for
> example, if the user decides to navigate with the right half of the
> screen, the left half would update accordingly? Does anyone have any
> pointers for me or links or examples?
How about the Zope mgmt interface?
> One other question, how do I refer to a specific object in a python?
> If /status is a folder, how would I refer to the /status folder from
> any number of subfolders within?
acquisition. :-) i'd give a longer answer but it would take five
pages.
You can also use the PARENTS construct to get the root object ala:
root = self.PARENTS[-1]
status = root.status