Re: [Zope-dev] tree tag question
-----Original Message----- From: Jonothan Farr <jfarr@real.com> To: zope-dev@zope.org <zope-dev@zope.org> Date: zaterdag 18 maart 2000 0:09 Subject: [Zope-dev] tree tag question This is driving me crazy. I can't for the life of me figure out how dtml-tree is hooked into the template machinery. It looks like the tag is implemented in the class TreeDisplay.TreeTag.Tree. [RH]Treedisplay is a directory in <zope>\lib\python\ TreeTag.py is the module, Tree is a class in the module hth Rik
Thanks. I actually found what I was looking for. On line 158 of TreeTag.py is the following code: String.commands['tree']=Tree ...which hooks TreeTag into the DTML machinery. This is pretty cool. You could actually build a product that adds an extension to dtml without having to modify any of the document template code. I guess I should have asked what I really wanted to know, which is how to create an object that works with the tree tag without subclassing ObjectManager. I figured it out, though. Think I'll go write a how-to! =) -jfarr ----- Original Message ----- From: Rik Hoekstra <rik.hoekstra@inghist.nl> To: Jonothan Farr <jfarr@real.com>; <zope-dev@zope.org> Sent: Saturday, March 18, 2000 5:04 AM Subject: Re: [Zope-dev] tree tag question
-----Original Message----- From: Jonothan Farr <jfarr@real.com> To: zope-dev@zope.org <zope-dev@zope.org> Date: zaterdag 18 maart 2000 0:09 Subject: [Zope-dev] tree tag question
This is driving me crazy. I can't for the life of me figure out how dtml-tree is hooked into the template machinery.
It looks like the tag is implemented in the class TreeDisplay.TreeTag.Tree.
[RH]Treedisplay is a directory in <zope>\lib\python\
TreeTag.py is the module,
Tree is a class in the module
hth
Rik
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
participants (2)
-
Jonothan Farr -
Rik Hoekstra