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
e4808a34
Commit
e4808a34
authored
Feb 04, 2003
by
matt@zope.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Recode the isinstance check to something that wont crash if arg 1 is not
an extension class
parent
062ff778
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
doc/CHANGES.txt
doc/CHANGES.txt
+4
-0
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+3
-3
No files found.
doc/CHANGES.txt
View file @
e4808a34
...
...
@@ -74,6 +74,10 @@ Zope Changes
- Some calls to os.system('chmod') has been replaced with the more
portable os.chmod() call, to make install work properly on Windows.
- Fixed an isinstance() check in SimpleItem on standard_error_message
handling that would always break if the first argument was not
an extension class because the second argument was a type.
Zope 2.6.1 beta 2
...
...
lib/python/OFS/SimpleItem.py
View file @
e4808a34
...
...
@@ -17,8 +17,8 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
item types.
$Id: SimpleItem.py,v 1.10
5 2002/08/30 20:21:29 caseman
Exp $'''
__version__
=
'$Revision: 1.10
5
$'
[
11
:
-
2
]
$Id: SimpleItem.py,v 1.10
6 2003/02/04 16:38:10 matt
Exp $'''
__version__
=
'$Revision: 1.10
6
$'
[
11
:
-
2
]
import
re
,
sys
,
Globals
,
App
.
Management
,
Acquisition
,
App
.
Undo
import
AccessControl.Role
,
AccessControl
.
Owned
,
App
.
Common
...
...
@@ -197,7 +197,7 @@ class Item(Base, Resource, CopySource, App.Management.Tabs, Traversable,
'error_message'
:
error_message
,
'error_log_url'
:
error_log_url
}
if
isinstance
(
s
,
HTML
):
if
getattr
(
aq_base
(
s
),
'isDocTemp'
,
0
):
v
=
s
(
client
,
REQUEST
,
**
kwargs
)
elif
callable
(
s
):
v
=
s
(
**
kwargs
)
...
...
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