Commit ffa5a911 authored by Jim Fulton's avatar Jim Fulton

A typo probably caused __delitem__

calls on wrapped mapping objects to fail.
parent 86142d8c
/* /*
$Id: Acquisition.c,v 1.22 1998/05/20 17:17:17 jim Exp $ $Id: Acquisition.c,v 1.23 1998/11/17 19:47:59 jim Exp $
Acquisition Wrappers -- Implementation of acquisition through wrappers Acquisition Wrappers -- Implementation of acquisition through wrappers
...@@ -677,7 +677,7 @@ Wrapper_ass_item(Wrapper *self, int i, PyObject *v) ...@@ -677,7 +677,7 @@ Wrapper_ass_item(Wrapper *self, int i, PyObject *v)
else else
{ {
UNLESS(v=CallMethodO(OBJECT(self),py__delitem__, UNLESS(v=CallMethodO(OBJECT(self),py__delitem__,
Build("(iO)", i),NULL)) Build("(i)", i),NULL))
return -1; return -1;
} }
Py_DECREF(v); Py_DECREF(v);
...@@ -906,7 +906,7 @@ void ...@@ -906,7 +906,7 @@ void
initAcquisition() initAcquisition()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.22 $"; char *rev="$Revision: 1.23 $";
PURE_MIXIN_CLASS(Acquirer, PURE_MIXIN_CLASS(Acquirer,
"Base class for objects that implicitly" "Base class for objects that implicitly"
" acquire attributes from containers\n" " acquire attributes from containers\n"
...@@ -925,7 +925,7 @@ initAcquisition() ...@@ -925,7 +925,7 @@ initAcquisition()
/* Create the module and add the functions */ /* Create the module and add the functions */
m = Py_InitModule4("Acquisition", methods, m = Py_InitModule4("Acquisition", methods,
"Provide base classes for acquiring objects\n\n" "Provide base classes for acquiring objects\n\n"
"$Id: Acquisition.c,v 1.22 1998/05/20 17:17:17 jim Exp $\n", "$Id: Acquisition.c,v 1.23 1998/11/17 19:47:59 jim Exp $\n",
OBJECT(NULL),PYTHON_API_VERSION); OBJECT(NULL),PYTHON_API_VERSION);
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
...@@ -948,6 +948,10 @@ initAcquisition() ...@@ -948,6 +948,10 @@ initAcquisition()
/***************************************************************************** /*****************************************************************************
$Log: Acquisition.c,v $ $Log: Acquisition.c,v $
Revision 1.23 1998/11/17 19:47:59 jim
A typo probably caused __delitem__
calls on wrapped mapping objects to fail.
Revision 1.22 1998/05/20 17:17:17 jim Revision 1.22 1998/05/20 17:17:17 jim
Fixed a bug in aq_acquire machinery. If aq_self was a wrapper, Fixed a bug in aq_acquire machinery. If aq_self was a wrapper,
then aq_acquire needed to be called on it, but that wasn't hapenning. then aq_acquire needed to be called on it, but that wasn't hapenning.
......
/* /*
$Id: Acquisition.c,v 1.22 1998/05/20 17:17:17 jim Exp $ $Id: Acquisition.c,v 1.23 1998/11/17 19:47:59 jim Exp $
Acquisition Wrappers -- Implementation of acquisition through wrappers Acquisition Wrappers -- Implementation of acquisition through wrappers
...@@ -677,7 +677,7 @@ Wrapper_ass_item(Wrapper *self, int i, PyObject *v) ...@@ -677,7 +677,7 @@ Wrapper_ass_item(Wrapper *self, int i, PyObject *v)
else else
{ {
UNLESS(v=CallMethodO(OBJECT(self),py__delitem__, UNLESS(v=CallMethodO(OBJECT(self),py__delitem__,
Build("(iO)", i),NULL)) Build("(i)", i),NULL))
return -1; return -1;
} }
Py_DECREF(v); Py_DECREF(v);
...@@ -906,7 +906,7 @@ void ...@@ -906,7 +906,7 @@ void
initAcquisition() initAcquisition()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.22 $"; char *rev="$Revision: 1.23 $";
PURE_MIXIN_CLASS(Acquirer, PURE_MIXIN_CLASS(Acquirer,
"Base class for objects that implicitly" "Base class for objects that implicitly"
" acquire attributes from containers\n" " acquire attributes from containers\n"
...@@ -925,7 +925,7 @@ initAcquisition() ...@@ -925,7 +925,7 @@ initAcquisition()
/* Create the module and add the functions */ /* Create the module and add the functions */
m = Py_InitModule4("Acquisition", methods, m = Py_InitModule4("Acquisition", methods,
"Provide base classes for acquiring objects\n\n" "Provide base classes for acquiring objects\n\n"
"$Id: Acquisition.c,v 1.22 1998/05/20 17:17:17 jim Exp $\n", "$Id: Acquisition.c,v 1.23 1998/11/17 19:47:59 jim Exp $\n",
OBJECT(NULL),PYTHON_API_VERSION); OBJECT(NULL),PYTHON_API_VERSION);
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
...@@ -948,6 +948,10 @@ initAcquisition() ...@@ -948,6 +948,10 @@ initAcquisition()
/***************************************************************************** /*****************************************************************************
$Log: Acquisition.c,v $ $Log: Acquisition.c,v $
Revision 1.23 1998/11/17 19:47:59 jim
A typo probably caused __delitem__
calls on wrapped mapping objects to fail.
Revision 1.22 1998/05/20 17:17:17 jim Revision 1.22 1998/05/20 17:17:17 jim
Fixed a bug in aq_acquire machinery. If aq_self was a wrapper, Fixed a bug in aq_acquire machinery. If aq_self was a wrapper,
then aq_acquire needed to be called on it, but that wasn't hapenning. then aq_acquire needed to be called on it, but that wasn't hapenning.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment