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
58706481
Commit
58706481
authored
Feb 18, 2014
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A pure-python implementation of ContainedProxy that works on pypy
parent
3f9b5cb3
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
459 additions
and
5 deletions
+459
-5
setup.py
setup.py
+1
-0
src/zope/container/_proxy.py
src/zope/container/_proxy.py
+451
-0
src/zope/container/_zope_proxy_proxy.c
src/zope/container/_zope_proxy_proxy.c
+1
-2
src/zope/container/contained.py
src/zope/container/contained.py
+6
-3
No files found.
setup.py
View file @
58706481
...
...
@@ -66,6 +66,7 @@ setup(name='zope.container',
'Programming Language :: Python :: 3'
,
'Programming Language :: Python :: 3.3'
,
'Programming Language :: Python :: Implementation :: CPython'
,
'Programming Language :: Python :: Implementation :: PyPy'
,
'Natural Language :: English'
,
'Operating System :: OS Independent'
,
'Topic :: Internet :: WWW/HTTP'
,
...
...
src/zope/container/_proxy.py
0 → 100644
View file @
58706481
This diff is collapsed.
Click to expand it.
src/zope/container/_zope_proxy_proxy.c
View file @
58706481
...
...
@@ -214,7 +214,7 @@ WrapperType_Lookup(PyTypeObject *type, PyObject *name)
base
=
PyTuple_GET_ITEM
(
mro
,
i
);
if
(((
PyTypeObject
*
)
base
)
!=
&
ProxyType
)
{
#if PY_MAJOR_VERSION < 3
#if PY_MAJOR_VERSION < 3
&& !defined(PYPY_VERSION)
if
(
PyClass_Check
(
base
))
dict
=
((
PyClassObject
*
)
base
)
->
cl_dict
;
else
...
...
@@ -1253,4 +1253,3 @@ MOD_INIT(_zope_proxy_proxy)
return
MOD_SUCCESS_VAL
(
m
);
}
src/zope/container/contained.py
View file @
58706481
...
...
@@ -29,8 +29,12 @@ from zope.location.interfaces import IContained
from
zope.container.interfaces
import
INameChooser
from
zope.container.interfaces
import
IReservedNames
,
NameReserved
from
zope.container.interfaces
import
IContainerModifiedEvent
from
zope.container._zope_container_contained
import
ContainedProxyBase
from
zope.container._zope_container_contained
import
getProxiedObject
try
:
from
zope.container._zope_container_contained
import
ContainedProxyBase
from
zope.container._zope_container_contained
import
getProxiedObject
except
ImportError
:
# PyPy
from
_proxy
import
py_getProxiedObject
as
getProxiedObject
from
_proxy
import
PyProxyBase
as
ContainedProxyBase
from
zope.lifecycleevent
import
ObjectMovedEvent
from
zope.lifecycleevent
import
ObjectAddedEvent
...
...
@@ -956,4 +960,3 @@ class ContainedProxy(ContainedProxyBase):
DecoratedSecurityCheckerDescriptor
())
ContainedProxy
.
__provides__
=
ContainedProxyClassProvides
(
ContainedProxy
,
type
)
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