----- 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!!!