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
b8e170d1
Commit
b8e170d1
authored
Feb 13, 2001
by
Martijn Pieters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for Collector issue 1967; test for the type of an object, not for the
object itself.
parent
59cecb2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/python/DocumentTemplate/DT_In.py
lib/python/DocumentTemplate/DT_In.py
+3
-3
No files found.
lib/python/DocumentTemplate/DT_In.py
View file @
b8e170d1
...
@@ -382,8 +382,8 @@
...
@@ -382,8 +382,8 @@
'''
#'
'''
#'
__rcs_id__
=
'$Id: DT_In.py,v 1.4
4 2001/01/24 16:26:01 brian
Exp $'
__rcs_id__
=
'$Id: DT_In.py,v 1.4
5 2001/02/13 11:58:26 mj
Exp $'
__version__
=
'$Revision: 1.4
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
5
$'
[
11
:
-
2
]
from
DT_Util
import
ParseError
,
parse_params
,
name_param
,
str
from
DT_Util
import
ParseError
,
parse_params
,
name_param
,
str
from
DT_Util
import
render_blocks
,
InstanceDict
,
ValidationError
,
VSEval
,
expr_globals
from
DT_Util
import
render_blocks
,
InstanceDict
,
ValidationError
,
VSEval
,
expr_globals
...
@@ -758,7 +758,7 @@ class InClass:
...
@@ -758,7 +758,7 @@ class InClass:
if
mapping
:
k
=
v
[
sort
]
if
mapping
:
k
=
v
[
sort
]
else
:
k
=
getattr
(
v
,
sort
)
else
:
k
=
getattr
(
v
,
sort
)
except
AttributeError
,
KeyError
:
k
=
None
except
AttributeError
,
KeyError
:
k
=
None
if
not
basic_type
(
k
):
if
not
basic_type
(
type
(
k
)
):
try
:
k
=
k
()
try
:
k
=
k
()
except
:
pass
except
:
pass
...
...
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