[ZPT] CVS: Zope/lib/python/ZTUtils - Tree.py:1.6.6.2
Martijn Pieters
mj@zope.com
Thu, 3 Oct 2002 17:50:39 -0400
Update of /cvs-repository/Zope/lib/python/ZTUtils
In directory cvs.zope.org:/tmp/cvs-serv22050/lib/python/ZTUtils
Modified Files:
Tag: Zope-2_6-branch
Tree.py
Log Message:
Merge tree depth encoding from trunk, and add a changelog message.
=== Zope/lib/python/ZTUtils/Tree.py 1.6.6.1 => 1.6.6.2 ===
--- Zope/lib/python/ZTUtils/Tree.py:1.6.6.1 Thu Oct 3 17:09:14 2002
+++ Zope/lib/python/ZTUtils/Tree.py Thu Oct 3 17:50:39 2002
@@ -189,7 +189,7 @@
dd = last_depth - node.depth + 1
last_depth = node.depth
if dd > 0:
- steps.append('.' * dd)
+ steps.append('_' * dd)
steps.append(node.id)
node.expansion_number = n
n = n + 1
@@ -207,7 +207,7 @@
if nth is not None:
nth_pair = (None, None)
for step in s.split(':'):
- if step[:1] == '.':
+ if step == len(step) * '_':
pop = len(step) - 1
continue
if pop < 0: