Re: [Zope] Using the Tree Widget
----- Original Message ----- From: "David VanKirk" <kriknav@gmail.com> To: "Jonathan" <dev101@magma.ca> Sent: Friday, August 04, 2006 6:23 PM Subject: Re: [Zope] Using the Tree Widget
Unfortunately, I've already read over all of that. It does tell about all the features of the widget, but it doesn't seem to give me that connection to make this widget useful, aside from listing objects in Zope.
I had a quick look at the dtml tree doc (i have never used it, so am just going on what i read), but it seems that you can specify methods that are called in order to obtain branch elements and there is an attribute 'expr' which allows you to provide an 'expression' which provides the value to be displayed, so it sounds as if you should be able to write your own routines to pull the info out of your db. Jonathan P.S. pls keep your posts on the list (that way others can help too!)
Thanks though.
On 8/4/06, Jonathan <dev101@magma.ca> wrote:
----- Original Message ----- From: "David VanKirk" <kriknav@gmail.com> To: "Zope Mailing List" <zope@zope.org> Sent: Friday, August 04, 2006 4:53 PM Subject: [Zope] Using the Tree Widget
Is it possible to use the DTML tree widget to build a tree from non-Zope Object items?
I'd like to be able to build a tree from information I have stored in a database, unfortunately, the only information and examples I can find on the tree widget shows how to make a tree from Zope Objects.
Does anyone have any experience in this area, or can you point me to some web site that may be able to help me?
This may help:
http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.15.html
Jonathan
-- David VanKirk
Yea I saw that and started working or writing my own function, but there are some other things that didn't work for me. I guess I don't know how the widget calls that function. Does it call that function once, or does it call it for each node? Does the widget pass some info to the function (or can it be done) so that the function knows what node the widget wants children for? Does the widget expect a certain type of object list to be returned from the function? How would I format the returned object to be displayed if it's not in the standar Zope Object format? On 8/4/06, Jonathan <dev101@magma.ca> wrote:
----- Original Message ----- From: "David VanKirk" <kriknav@gmail.com> To: "Jonathan" <dev101@magma.ca> Sent: Friday, August 04, 2006 6:23 PM Subject: Re: [Zope] Using the Tree Widget
Unfortunately, I've already read over all of that. It does tell about all the features of the widget, but it doesn't seem to give me that connection to make this widget useful, aside from listing objects in Zope.
I had a quick look at the dtml tree doc (i have never used it, so am just going on what i read), but it seems that you can specify methods that are called in order to obtain branch elements and there is an attribute 'expr' which allows you to provide an 'expression' which provides the value to be displayed, so it sounds as if you should be able to write your own routines to pull the info out of your db.
Jonathan
P.S. pls keep your posts on the list (that way others can help too!)
Thanks though.
On 8/4/06, Jonathan <dev101@magma.ca> wrote:
----- Original Message ----- From: "David VanKirk" <kriknav@gmail.com> To: "Zope Mailing List" <zope@zope.org> Sent: Friday, August 04, 2006 4:53 PM Subject: [Zope] Using the Tree Widget
Is it possible to use the DTML tree widget to build a tree from non-Zope Object items?
I'd like to be able to build a tree from information I have stored in a database, unfortunately, the only information and examples I can find on the tree widget shows how to make a tree from Zope Objects.
Does anyone have any experience in this area, or can you point me to some web site that may be able to help me?
This may help:
http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.15.html
Jonathan
-- David VanKirk
-- David VanKirk
----- Original Message ----- From: "David VanKirk" <kriknav@gmail.com> To: "Jonathan" <dev101@magma.ca> Cc: <zope@zope.org> Sent: Saturday, August 05, 2006 7:36 AM Subject: Re: [Zope] Using the Tree Widget
Yea I saw that and started working or writing my own function, but there are some other things that didn't work for me. I guess I don't know how the widget calls that function.
Does it call that function once, or does it call it for each node? Does the widget pass some info to the function (or can it be done) so that the function knows what node the widget wants children for? Does the widget expect a certain type of object list to be returned from the function? How would I format the returned object to be displayed if it's not in the standar Zope Object format?
All I can suggest is: (i) create small test routines to check out features one-at-a-time, and (ii) look at the source code. It may be easier/simpler just to build your own tree-generation routine for the db/data you are using (this is what I have done in the past, it is not a difficult task and it gives you complete control over the content and display of the tree). Jonathan
On 8/4/06, Jonathan <dev101@magma.ca> wrote:
----- Original Message ----- From: "David VanKirk" <kriknav@gmail.com> To: "Jonathan" <dev101@magma.ca> Sent: Friday, August 04, 2006 6:23 PM Subject: Re: [Zope] Using the Tree Widget
Unfortunately, I've already read over all of that. It does tell about all the features of the widget, but it doesn't seem to give me that connection to make this widget useful, aside from listing objects in Zope.
I had a quick look at the dtml tree doc (i have never used it, so am just going on what i read), but it seems that you can specify methods that are called in order to obtain branch elements and there is an attribute 'expr' which allows you to provide an 'expression' which provides the value to be displayed, so it sounds as if you should be able to write your own routines to pull the info out of your db.
Jonathan
P.S. pls keep your posts on the list (that way others can help too!)
Thanks though.
On 8/4/06, Jonathan <dev101@magma.ca> wrote:
----- Original Message ----- From: "David VanKirk" <kriknav@gmail.com> To: "Zope Mailing List" <zope@zope.org> Sent: Friday, August 04, 2006 4:53 PM Subject: [Zope] Using the Tree Widget
Is it possible to use the DTML tree widget to build a tree from non-Zope Object items?
I'd like to be able to build a tree from information I have stored in a database, unfortunately, the only information and examples I can find on the tree widget shows how to make a tree from Zope Objects.
Does anyone have any experience in this area, or can you point me to some web site that may be able to help me?
This may help:
http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.15.html
Jonathan
-- David VanKirk
-- David VanKirk
participants (2)
-
David VanKirk -
Jonathan