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
8bdd5048
Commit
8bdd5048
authored
Dec 22, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed again the way that images are handled.
parent
2406fd2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
lib/python/TreeDisplay/TreeTag.py
lib/python/TreeDisplay/TreeTag.py
+13
-10
No files found.
lib/python/TreeDisplay/TreeTag.py
View file @
8bdd5048
...
...
@@ -9,8 +9,8 @@
# rights reserved.
#
############################################################################
__rcs_id__
=
'$Id: TreeTag.py,v 1.
19 1997/12/18 16:45:43 jeffrey
Exp $'
__version__
=
'$Revision: 1.
19
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: TreeTag.py,v 1.
20 1997/12/22 15:09:52 jim
Exp $'
__version__
=
'$Revision: 1.
20
$'
[
11
:
-
2
]
from
DocumentTemplate.DT_Util
import
*
from
DocumentTemplate.DT_String
import
String
...
...
@@ -173,6 +173,7 @@ def tpRenderTABLE(self, id, root_url, url, state, substate, diff, data,
exp
=
0
sub
=
None
output
=
data
.
append
script
=
md
[
'SCRIPT_NAME'
]
try
:
items
=
getattr
(
self
,
args
[
'branches'
])()
except
:
items
=
None
...
...
@@ -231,16 +232,18 @@ def tpRenderTABLE(self, id, root_url, url, state, substate, diff, data,
if
exp
:
treeData
[
'tree-item-expanded'
]
=
1
output
(
'<A HREF="%s?tree-c=%s">%s</A>'
%
(
root_url
,
s
,
icoMinus
))
output
(
'<A HREF="%s?tree-c=%s">'
'<IMG SRC="%s/p_/mi" BORDER=0></A>'
%
(
root_url
,
s
,
script
))
else
:
output
(
'<A HREF="%s?tree-e=%s">%s</A>'
%
(
root_url
,
s
,
icoPlus
))
output
(
'<A HREF="%s?tree-e=%s">'
'<IMG SRC="%s/p_/pl" BORDER=0></A>'
%
(
root_url
,
s
,
script
))
output
(
'</TD>
\
n
'
)
else
:
if
level
>
2
:
output
(
'<TD COLSPAN="%s"></TD>'
%
level
)
elif
level
>
0
:
output
(
'<TD></TD>'
*
level
)
output
(
'<TD WIDTH="16">
%s</TD>
\
n
'
%
icoSpace
)
output
(
'<TD WIDTH="16">
</TD>
\
n
'
)
# add item text
...
...
@@ -463,9 +466,9 @@ def tpValuesIds(self, branches):
return
r
icoSpace
=
'<IMG SRC="Blank_icon" BORDER="0">'
icoPlus
=
'<IMG SRC="Plus_icon" BORDER="0">'
icoMinus
=
'<IMG SRC="Minus_icon" BORDER="0">'
#
icoSpace='<IMG SRC="Blank_icon" BORDER="0">'
#
icoPlus ='<IMG SRC="Plus_icon" BORDER="0">'
#
icoMinus='<IMG SRC="Minus_icon" BORDER="0">'
...
...
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