Skip to content

Commit

Permalink
Backported c109389 and c109390 from trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Feb 25, 2010
1 parent 870a3d6 commit 4aeac3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@ Changelog

2.11.2 (unreleased)
-------------------

- Fix the ``tp_name`` of the ImplicitAcquisitionWrapper and
ExplicitAcquisitionWrapper to match their Python visible names and thus have
a correct ``__name__``.

- Expand the ``tp_name`` of our extension types to hold the fully qualified
name. This ensures classes have their ``__module__`` set correctly.
4 changes: 2 additions & 2 deletions src/Acquisition/_Acquisition.c
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ static struct PyMethodDef Wrapper_methods[] = {
static PyExtensionClass Wrappertype = {
PyObject_HEAD_INIT(NULL)
0, /*ob_size*/
"ImplicitAcquirerWrapper", /*tp_name*/
"Acquisition.ImplicitAcquisitionWrapper", /*tp_name*/
sizeof(Wrapper), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
Expand Down Expand Up @@ -1271,7 +1271,7 @@ static PyExtensionClass Wrappertype = {
static PyExtensionClass XaqWrappertype = {
PyObject_HEAD_INIT(NULL)
0, /*ob_size*/
"ExplicitAcquirerWrapper", /*tp_name*/
"Acquisition.ExplicitAcquisitionWrapper", /*tp_name*/
sizeof(Wrapper), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
Expand Down

0 comments on commit 4aeac3f

Please sign in to comment.