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
73a10271
Commit
73a10271
authored
Mar 26, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed error propigation from aq_acquire in InstanceDict.
parent
31e051db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
lib/python/DocumentTemplate/cDocumentTemplate.c
lib/python/DocumentTemplate/cDocumentTemplate.c
+20
-3
No files found.
lib/python/DocumentTemplate/cDocumentTemplate.c
View file @
73a10271
...
...
@@ -10,7 +10,7 @@
static
char
cDocumentTemplate_module_documentation
[]
=
""
"
\n
$Id: cDocumentTemplate.c,v 1.
9 1997/12/18 17:48:46
jim Exp $"
"
\n
$Id: cDocumentTemplate.c,v 1.
10 1998/03/26 21:55:40
jim Exp $"
;
#include "ExtensionClass.h"
...
...
@@ -115,7 +115,21 @@ InstanceDict_subscript( InstanceDictobject *self, PyObject *key)
{
UNLESS_ASSIGN
(
r
,
PyObject_CallFunction
(
r
,
"OOO"
,
key
,
self
->
validate
,
self
->
namespace
))
goto
KeyError
;
{
PyObject
*
tb
;
PyErr_Fetch
(
&
r
,
&
v
,
&
tb
);
if
(
r
!=
PyExc_AttributeError
||
PyObject_Compare
(
v
,
key
))
{
PyErr_Restore
(
r
,
v
,
tb
);
return
NULL
;
}
Py_XDECREF
(
r
);
Py_XDECREF
(
v
);
Py_XDECREF
(
tb
);
goto
KeyError
;
}
}
else
UNLESS
(
r
=
PyObject_GetAttr
(
self
->
inst
,
key
))
goto
KeyError
;
...
...
@@ -529,7 +543,7 @@ void
initcDocumentTemplate
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
9
$"
;
char
*
rev
=
"$Revision: 1.
10
$"
;
UNLESS
(
py_isDocTemp
=
PyString_FromString
(
"isDocTemp"
))
return
;
UNLESS
(
py_blocks
=
PyString_FromString
(
"blocks"
))
return
;
...
...
@@ -562,6 +576,9 @@ initcDocumentTemplate()
Revision Log:
$Log: cDocumentTemplate.c,v $
Revision 1.10 1998/03/26 21:55:40 jim
Fixed error propigation from aq_acquire in InstanceDict.
Revision 1.9 1997/12/18 17:48:46 jim
added dcprotect
...
...
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