Commit 8bdd5048 authored by Jim Fulton's avatar Jim Fulton

Changed again the way that images are handled.

parent 2406fd2b
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
# rights reserved. # rights reserved.
# #
############################################################################ ############################################################################
__rcs_id__='$Id: TreeTag.py,v 1.19 1997/12/18 16:45:43 jeffrey Exp $' __rcs_id__='$Id: TreeTag.py,v 1.20 1997/12/22 15:09:52 jim Exp $'
__version__='$Revision: 1.19 $'[11:-2] __version__='$Revision: 1.20 $'[11:-2]
from DocumentTemplate.DT_Util import * from DocumentTemplate.DT_Util import *
from DocumentTemplate.DT_String import String from DocumentTemplate.DT_String import String
...@@ -173,6 +173,7 @@ def tpRenderTABLE(self, id, root_url, url, state, substate, diff, data, ...@@ -173,6 +173,7 @@ def tpRenderTABLE(self, id, root_url, url, state, substate, diff, data,
exp=0 exp=0
sub=None sub=None
output=data.append output=data.append
script=md['SCRIPT_NAME']
try: items=getattr(self, args['branches'])() try: items=getattr(self, args['branches'])()
except: items=None except: items=None
...@@ -231,16 +232,18 @@ def tpRenderTABLE(self, id, root_url, url, state, substate, diff, data, ...@@ -231,16 +232,18 @@ def tpRenderTABLE(self, id, root_url, url, state, substate, diff, data,
if exp: if exp:
treeData['tree-item-expanded']=1 treeData['tree-item-expanded']=1
output('<A HREF="%s?tree-c=%s">%s</A>' % output('<A HREF="%s?tree-c=%s">'
(root_url,s, icoMinus)) '<IMG SRC="%s/p_/mi" BORDER=0></A>' %
(root_url,s, script))
else: else:
output('<A HREF="%s?tree-e=%s">%s</A>' % output('<A HREF="%s?tree-e=%s">'
(root_url,s, icoPlus)) '<IMG SRC="%s/p_/pl" BORDER=0></A>' %
(root_url,s, script))
output('</TD>\n') output('</TD>\n')
else: else:
if level > 2: output('<TD COLSPAN="%s"></TD>' % level) if level > 2: output('<TD COLSPAN="%s"></TD>' % level)
elif level > 0: output('<TD></TD>' * level) elif level > 0: output('<TD></TD>' * level)
output('<TD WIDTH="16">%s</TD>\n' % icoSpace) output('<TD WIDTH="16"></TD>\n')
# add item text # add item text
...@@ -463,9 +466,9 @@ def tpValuesIds(self, branches): ...@@ -463,9 +466,9 @@ def tpValuesIds(self, branches):
return r return r
icoSpace='<IMG SRC="Blank_icon" BORDER="0">' #icoSpace='<IMG SRC="Blank_icon" BORDER="0">'
icoPlus ='<IMG SRC="Plus_icon" BORDER="0">' #icoPlus ='<IMG SRC="Plus_icon" BORDER="0">'
icoMinus='<IMG SRC="Minus_icon" BORDER="0">' #icoMinus='<IMG SRC="Minus_icon" BORDER="0">'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment