Commit 2e2ab5d4 authored by 's avatar

Merged fix for 1757 from 2.2 branch

parent c3567e94
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
"""Rendering object hierarchies as Trees """Rendering object hierarchies as Trees
""" """
__rcs_id__='$Id: TreeTag.py,v 1.43 2000/08/23 20:51:25 brian Exp $' __rcs_id__='$Id: TreeTag.py,v 1.44 2000/12/15 16:10:46 brian Exp $'
__version__='$Revision: 1.43 $'[11:-2] __version__='$Revision: 1.44 $'[11:-2]
from DocumentTemplate.DT_Util import * from DocumentTemplate.DT_Util import *
from DocumentTemplate.DT_String import String from DocumentTemplate.DT_String import String
...@@ -550,7 +550,7 @@ def apply_diff(state, diff, expand): ...@@ -550,7 +550,7 @@ def apply_diff(state, diff, expand):
id=diff[-1] id=diff[-1]
del diff[-1] del diff[-1]
if len(s)==1: s.append([]) if len(s)==1: s.append([])
s=s[1] s=list(s[1])
loc=-1 loc=-1
for i in range(len(s)): for i in range(len(s)):
if s[i][0]==id: if s[i][0]==id:
......
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