----- Original Message ----- From: "Dieter Maurer" <dieter@handshake.de> To: "Hugo Ramos" <hugo@zopers.org> Cc: "ZOPE" <zope@zope.org>; "EUROZOPE" <eurozope@comlounge.net> Sent: Tuesday, August 29, 2000 10:22 PM Subject: Re: [Zope] dtml-tree question
Hugo Ramos writes:
Is there a way to use my own self made '+' icon in a tree tag? I'dd like to use my own icon only IF i want to... and not change the python source to use my own icon all the time! The code is partially there, but incomplete and commented out.
If you do not mind other extensions as well, I could provide a TreeTag patch for several extensions, including the icon customization.
hello Dieter, I've tryied to hack the treetag source already... but there's some kind of bug in it: line 566 (original source): s.append([id,[]]) Why is this trying to append to 's' when 's' has become a tupple somewhere before this line???... tupples don't accept append!! This bug is really making me crazy... because it makes an error when clicking the + icon in a dtml-tree that I must use... Another thing: I hacked the source of treetag.py to accept 2 more parameters in the dtml-tree... icon_mi and icon_pl The hacked source is in the attach. Changes go from line 411-427. Of course i defined the 2 new parameters as None in the file top. Please somebody help me... I'm running out of ideias... regards ===== Hugo Ramos - hugo@zopers.org ZopersORG - http://www.zopers.org ===== Do not meddle in the affairs of programmers, for they are easy to annoy, and have all the source code!!!
Hugo Ramos wrote:
I've tryied to hack the treetag source already... but there's some kind of bug in it:
line 566 (original source): s.append([id,[]])
Why is this trying to append to 's' when 's' has become a tupple somewhere before this line???... tupples don't accept append!!
Yup, I got this too when I tried to make a 'batched tree' by doing a dtml-tree with the result of a dtml-in. I gave up... IMNSHO, dtml-tree needs a big rewrite. I'd love to do it, but two things are stopping me: 1. Other projects (Swishdot leaps out ;-) 2. As everyone knows what I think already: DTML has 'some problems'. In the course of solving these, I hope the problems with the tree tag will go away as a matter of course. that means fixing it now would be a waste of time ;-) I dunno, is anything being done to solve the 'DTML problem'? (there seem to have been a few proposals on dev to help, how are they getting on?) cheers, Chris
participants (2)
-
Chris Withers -
Hugo Ramos