[Zope3-checkins] CVS: Zope3/src/zope/proxy/context - wrapper.c:1.13 wrapper.h:1.5
Steve Alexander
steve@cat-box.net
Thu, 8 May 2003 05:39:22 -0400
Update of /cvs-repository/Zope3/src/zope/proxy/context
In directory cvs.zope.org:/tmp/cvs-serv8151/src/zope/proxy/context
Modified Files:
wrapper.c wrapper.h
Log Message:
Committed marius' changes to exported types from wrapper.h.
Fixed representation of some code in wrapper.c that doesn't actually
change anything, but masked a problem in a wrapper subclass.
=== Zope3/src/zope/proxy/context/wrapper.c 1.12 => 1.13 ===
--- Zope3/src/zope/proxy/context/wrapper.c:1.12 Wed May 7 11:53:43 2003
+++ Zope3/src/zope/proxy/context/wrapper.c Thu May 8 05:39:21 2003
@@ -835,7 +835,7 @@
Py_DECREF(res);
return 0;
}
- return PyObject_SetItem(Proxy_GET_OBJECT(self), key, value);
+ return PyObject_SetItem(wrapped, key, value);
}
}
=== Zope3/src/zope/proxy/context/wrapper.h 1.4 => 1.5 ===
--- Zope3/src/zope/proxy/context/wrapper.h:1.4 Wed May 7 11:53:43 2003
+++ Zope3/src/zope/proxy/context/wrapper.h Thu May 8 05:39:21 2003
@@ -66,11 +66,11 @@
}
#define WrapperType \
- (_wrapper_api->wrappertype)
+ (*_wrapper_api->wrappertype)
#define ContextDescriptorType \
- (_wrapper_api->contextdescriptortype)
+ (*_wrapper_api->contextdescriptortype)
#define ContextAwareType \
- (_wrapper_api->contextawaretype)
+ (*_wrapper_api->contextawaretype)
#define Wrapper_Check(obj) \
(_wrapper_api->check((obj)))
#define Wrapper_New(object, context) \