Commit eff8a90c authored by Christopher Petrilli's avatar Christopher Petrilli

Added in reverse option to #tree tag from 1.10.3 branch

parent 8d3197db
......@@ -84,8 +84,8 @@
##############################################################################
"""Rendering object hierarchies as Trees
"""
__rcs_id__='$Id: TreeTag.py,v 1.31 1999/06/18 22:15:27 jim Exp $'
__version__='$Revision: 1.31 $'[11:-2]
__rcs_id__='$Id: TreeTag.py,v 1.32 1999/07/08 19:48:04 petrilli Exp $'
__version__='$Revision: 1.32 $'[11:-2]
from DocumentTemplate.DT_Util import *
from DocumentTemplate.DT_String import String
......@@ -110,7 +110,7 @@ class Tree:
expand=None, leaves=None,
header=None, footer=None,
branches=None, branches_expr=None,
sort=None, skip_unauthorized=1,
sort=None, reverse=1, skip_unauthorized=1,
id=None, single=1, url=None,
# opened_decoration=None,
# closed_decoration=None,
......@@ -336,6 +336,9 @@ def tpRenderTABLE(self, id, root_url, url, state, substate, diff, data,
for i in size:
items[i]=items[i][1]
if have_arg('reverse'):
items.reverse()
diff.append(id)
sub=None
......
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