Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zope-container
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
Boxiang Sun
zope-container
Commits
b2ae9a9b
Commit
b2ae9a9b
authored
Mar 19, 2013
by
Matthew Wilkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment out the C extension. This should build conditionally, but this is just for testing
parent
9100fcaa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
setup.py
setup.py
+5
-5
src/zope/container/_zope_container_contained.c
src/zope/container/_zope_container_contained.c
+1
-1
src/zope/container/_zope_proxy_proxy.c
src/zope/container/_zope_proxy_proxy.c
+3
-1
No files found.
setup.py
View file @
b2ae9a9b
...
...
@@ -57,11 +57,11 @@ setup(name='zope.container',
packages
=
find_packages
(
'src'
),
package_dir
=
{
''
:
'src'
},
namespace_packages
=
[
'zope'
],
ext_modules
=
[
Extension
(
"zope.container._zope_container_contained"
,
[
os
.
path
.
join
(
"src"
,
"zope"
,
"container"
,
"_zope_container_contained.c"
)
],
include_dirs
=
[
'include'
]),
],
#
ext_modules=[Extension("zope.container._zope_container_contained",
#
[os.path.join("src", "zope", "container",
#
"_zope_container_contained.c")
#
], include_dirs=['include']),
#
],
extras_require
=
dict
(
test
=
[
'zope.configuration'
,
...
...
src/zope/container/_zope_container_contained.c
View file @
b2ae9a9b
...
...
@@ -32,7 +32,7 @@
#include "Python.h"
#include "persistent/
c
Persistence.h"
#include "persistent/Persistence.h"
static
PyObject
*
str_p_deactivate
;
...
...
src/zope/container/_zope_proxy_proxy.c
View file @
b2ae9a9b
...
...
@@ -174,13 +174,15 @@ WrapperType_Lookup(PyTypeObject *type, PyObject *name)
if
(((
PyTypeObject
*
)
base
)
!=
&
ProxyType
)
{
if
(
PyClass_Check
(
base
))
dict
=
((
PyClassObject
*
)
base
)
->
cl_dict
;
dict
=
GetAttrString
(
base
,
"__dict__"
);
Py_INCREF
(
dict
);
else
{
assert
(
PyType_Check
(
base
));
dict
=
((
PyTypeObject
*
)
base
)
->
tp_dict
;
}
assert
(
dict
&&
PyDict_Check
(
dict
));
res
=
PyDict_GetItem
(
dict
,
name
);
Py_DECREF
(
dict
);
if
(
res
!=
NULL
)
return
res
;
}
...
...
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