Commit 7e620b9a authored by 's avatar

Added tree-item-expanded

parent 8126734c
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
# rights reserved. # rights reserved.
# #
############################################################################ ############################################################################
__rcs_id__='$Id: TreeTag.py,v 1.2 1997/09/04 21:59:55 brian Exp $' __rcs_id__='$Id: TreeTag.py,v 1.3 1997/09/04 22:08:19 brian Exp $'
__version__='$Revision: 1.2 $'[11:-2] __version__='$Revision: 1.3 $'[11:-2]
from DocumentTemplate.DT_Util import * from DocumentTemplate.DT_Util import *
from DocumentTemplate.DT_String import String from DocumentTemplate.DT_String import String
...@@ -119,6 +119,8 @@ def tpRenderTABLE(self, root_url, url, state, substate, data, ...@@ -119,6 +119,8 @@ def tpRenderTABLE(self, root_url, url, state, substate, data,
tpUrl=self.tpURL() tpUrl=self.tpURL()
url = (url and ('%s/%s' % (url, tpUrl))) or tpUrl url = (url and ('%s/%s' % (url, tpUrl))) or tpUrl
treeData['tree-item-url']=url treeData['tree-item-url']=url
treeData['tree-item-expanded']=0
try: id=self.tpId() try: id=self.tpId()
except: id=None except: id=None
...@@ -144,6 +146,7 @@ def tpRenderTABLE(self, root_url, url, state, substate, data, ...@@ -144,6 +146,7 @@ def tpRenderTABLE(self, root_url, url, state, substate, data,
exp=i+1 exp=i+1
break break
if exp: if exp:
treeData['tree-item-expanded']=1
del substate[exp-1] del substate[exp-1]
output('<A HREF="%s?state=%s">%s</A>' % output('<A HREF="%s?state=%s">%s</A>' %
(root_url,quote(str(state)[1:-1]+','), icoMinus)) (root_url,quote(str(state)[1:-1]+','), icoMinus))
......
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