Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
2e2af612
Commit
2e2af612
authored
Aug 23, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged fix to allow name= and expr= shorthand notation in tree tag.
parent
d02975a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
lib/python/TreeDisplay/TreeTag.py
lib/python/TreeDisplay/TreeTag.py
+7
-8
No files found.
lib/python/TreeDisplay/TreeTag.py
View file @
2e2af612
...
...
@@ -84,8 +84,8 @@
##############################################################################
"""Rendering object hierarchies as Trees
"""
__rcs_id__
=
'$Id: TreeTag.py,v 1.4
2 2000/06/01 13:48:08 jim
Exp $'
__version__
=
'$Revision: 1.4
2
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: TreeTag.py,v 1.4
3 2000/08/23 20:51:25 brian
Exp $'
__version__
=
'$Revision: 1.4
3
$'
[
11
:
-
2
]
from
DocumentTemplate.DT_Util
import
*
from
DocumentTemplate.DT_String
import
String
...
...
@@ -119,8 +119,11 @@ class Tree:
urlparam
=
None
)
has_key
=
args
.
has_key
if
has_key
(
'name'
):
name
=
args
[
'name'
]
elif
has_key
(
''
):
name
=
args
[
'name'
]
=
args
[
''
]
if
has_key
(
''
)
or
has_key
(
'name'
)
or
has_key
(
'expr'
):
name
,
expr
=
name_param
(
args
,
'tree'
,
1
)
if
expr
is
not
None
:
args
[
'expr'
]
=
expr
elif
has_key
(
''
):
args
[
'name'
]
=
name
else
:
name
=
'a tree tag'
if
has_key
(
'branches_expr'
):
...
...
@@ -139,10 +142,6 @@ class Tree:
self
.
__name__
=
name
self
.
section
=
section
.
blocks
self
.
args
=
args
if
args
.
has_key
(
'expr'
):
if
args
.
has_key
(
'name'
):
raise
ParseError
,
_tm
(
'name and expr given'
,
'tree'
)
args
[
'expr'
]
=
VSEval
.
Eval
(
args
[
'expr'
],
expr_globals
)
def
render
(
self
,
md
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment