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
8a6733f0
Commit
8a6733f0
authored
Jun 18, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the way _p_oid is used as a default id to take account of
the fact that _p_oid isn't an int any more.
parent
dfd8fd84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
lib/python/TreeDisplay/TreeTag.py
lib/python/TreeDisplay/TreeTag.py
+9
-5
No files found.
lib/python/TreeDisplay/TreeTag.py
View file @
8a6733f0
...
@@ -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.3
0 1999/03/10 00:15:49 kl
m Exp $'
__rcs_id__
=
'$Id: TreeTag.py,v 1.3
1 1999/06/18 22:15:27 ji
m Exp $'
__version__
=
'$Revision: 1.3
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
1
$'
[
11
:
-
2
]
from
DocumentTemplate.DT_Util
import
*
from
DocumentTemplate.DT_Util
import
*
from
DocumentTemplate.DT_String
import
String
from
DocumentTemplate.DT_String
import
String
...
@@ -187,7 +187,7 @@ def tpRender(self, md, section, args,
...
@@ -187,7 +187,7 @@ def tpRender(self, md, section, args,
if
hasattr
(
self
,
idattr
):
if
hasattr
(
self
,
idattr
):
id
=
getattr
(
self
,
idattr
)
id
=
getattr
(
self
,
idattr
)
if
not
simple_type
(
type
(
id
)):
id
=
id
()
if
not
simple_type
(
type
(
id
)):
id
=
id
()
elif
hasattr
(
self
,
'_p_oid'
):
id
=
self
.
_p_oid
elif
hasattr
(
self
,
'_p_oid'
):
id
=
oid
(
self
)
else
:
id
=
pyid
(
self
)
else
:
id
=
pyid
(
self
)
try
:
try
:
...
@@ -472,7 +472,7 @@ def tpRenderTABLE(self, id, root_url, url, state, substate, diff, data,
...
@@ -472,7 +472,7 @@ def tpRenderTABLE(self, id, root_url, url, state, substate, diff, data,
if
hasattr
(
item
,
idattr
):
if
hasattr
(
item
,
idattr
):
id
=
getattr
(
item
,
idattr
)
id
=
getattr
(
item
,
idattr
)
if
not
simple_type
(
type
(
id
)):
id
=
id
()
if
not
simple_type
(
type
(
id
)):
id
=
id
()
elif
hasattr
(
item
,
'_p_oid'
):
id
=
item
.
_p_oid
elif
hasattr
(
item
,
'_p_oid'
):
id
=
oid
(
item
)
else
:
id
=
pyid
(
item
)
else
:
id
=
pyid
(
item
)
if
len
(
sub
)
==
1
:
sub
.
append
([])
if
len
(
sub
)
==
1
:
sub
.
append
([])
substate
=
sub
[
1
]
substate
=
sub
[
1
]
...
@@ -633,7 +633,7 @@ def tpValuesIds(self, branches, args,
...
@@ -633,7 +633,7 @@ def tpValuesIds(self, branches, args,
if
hasattr
(
self
,
idattr
):
if
hasattr
(
self
,
idattr
):
id
=
getattr
(
self
,
idattr
)
id
=
getattr
(
self
,
idattr
)
if
not
simple_type
(
type
(
id
)):
id
=
id
()
if
not
simple_type
(
type
(
id
)):
id
=
id
()
elif
hasattr
(
item
,
'_p_oid'
):
id
=
item
.
_p_oid
elif
hasattr
(
item
,
'_p_oid'
):
id
=
oid
(
item
)
else
:
id
=
pyid
(
item
)
else
:
id
=
pyid
(
item
)
e
=
tpValuesIds
(
item
,
branches
,
args
)
e
=
tpValuesIds
(
item
,
branches
,
args
)
...
@@ -643,6 +643,10 @@ def tpValuesIds(self, branches, args,
...
@@ -643,6 +643,10 @@ def tpValuesIds(self, branches, args,
except
:
pass
except
:
pass
except
:
pass
except
:
pass
return
r
return
r
def
oid
(
self
):
return
b2a_base64
(
str
(
self
.
_p_oid
))[:
-
1
]
#icoSpace='<IMG SRC="Blank_icon" BORDER="0">'
#icoSpace='<IMG SRC="Blank_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