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
6d2ccdf4
Commit
6d2ccdf4
authored
Feb 15, 2013
by
Albertas Agejevas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove trailing whitespace.
parent
4d6384b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
src/zope/container/_zope_container_contained.c
src/zope/container/_zope_container_contained.c
+15
-15
No files found.
src/zope/container/_zope_container_contained.c
View file @
6d2ccdf4
...
...
@@ -23,7 +23,7 @@
persistence. To reuse the base proxy implementation we don't treat
the proxied object as part of the persistent state of the proxy.
This means that the proxy still operates as a proxy even if it is a
ghost.
ghost.
The proxy will only be unghostified if you need to access one of the
attributes provided by the proxy.
...
...
@@ -94,7 +94,7 @@ typedef struct {
strcmp((NAME), "__reduce_ex__") == 0 \
)) \
))
static
PyObject
*
CP_getattro
(
PyObject
*
self
,
PyObject
*
name
)
{
...
...
@@ -132,7 +132,7 @@ CP_setattro(PyObject *self, PyObject *name, PyObject *v)
static
PyObject
*
CP_getstate
(
ProxyObject
*
self
)
{
return
Py_BuildValue
(
"OO"
,
return
Py_BuildValue
(
"OO"
,
self
->
__parent__
?
self
->
__parent__
:
Py_None
,
self
->
__name__
?
self
->
__name__
:
Py_None
);
...
...
@@ -192,7 +192,7 @@ CP__p_deactivate(ProxyObject *self)
{
PyObject
*
result
;
result
=
PyObject_CallMethodObjArgs
(
OBJECT
(
cPersistenceCAPI
->
pertype
),
result
=
PyObject_CallMethodObjArgs
(
OBJECT
(
cPersistenceCAPI
->
pertype
),
str_p_deactivate
,
self
,
NULL
);
if
(
result
==
NULL
)
...
...
@@ -212,17 +212,17 @@ CP__p_deactivate(ProxyObject *self)
static
PyMethodDef
CP_methods
[]
=
{
{
"__getstate__"
,
(
PyCFunction
)
CP_getstate
,
METH_NOARGS
,
{
"__getstate__"
,
(
PyCFunction
)
CP_getstate
,
METH_NOARGS
,
"Get the object state"
},
{
"__setstate__"
,
(
PyCFunction
)
CP_setstate
,
METH_O
,
{
"__setstate__"
,
(
PyCFunction
)
CP_setstate
,
METH_O
,
"Set the object state"
},
{
"__getnewargs__"
,
(
PyCFunction
)
CP_getnewargs
,
METH_NOARGS
,
{
"__getnewargs__"
,
(
PyCFunction
)
CP_getnewargs
,
METH_NOARGS
,
"Get the arguments that must be passed to __new__"
},
{
"__reduce__"
,
(
PyCFunction
)
CP_reduce
,
METH_NOARGS
,
{
"__reduce__"
,
(
PyCFunction
)
CP_reduce
,
METH_NOARGS
,
"Reduce the object to constituent parts."
},
{
"__reduce_ex__"
,
(
PyCFunction
)
CP_reduce_ex
,
METH_O
,
{
"__reduce_ex__"
,
(
PyCFunction
)
CP_reduce_ex
,
METH_O
,
"Reduce the object to constituent parts."
},
{
"_p_deactivate"
,
(
PyCFunction
)
CP__p_deactivate
,
METH_NOARGS
,
{
"_p_deactivate"
,
(
PyCFunction
)
CP__p_deactivate
,
METH_NOARGS
,
"Deactivate the object."
},
{
NULL
,
NULL
},
};
...
...
@@ -249,7 +249,7 @@ CP_traverse(ProxyObject *self, visitproc visit, void *arg)
return
-
1
;
if
(
self
->
__name__
!=
NULL
&&
visit
(
self
->
__name__
,
arg
)
<
0
)
return
-
1
;
return
0
;
}
...
...
@@ -266,7 +266,7 @@ CP_clear(ProxyObject *self)
*/
if
(
cPersistenceCAPI
->
pertype
->
tp_clear
!=
NULL
)
cPersistenceCAPI
->
pertype
->
tp_clear
((
PyObject
*
)
self
);
CLEAR
(
self
->
proxy_object
);
CLEAR
(
self
->
__parent__
);
CLEAR
(
self
->
__name__
);
...
...
@@ -298,11 +298,11 @@ init_zope_container_contained(void)
str_p_deactivate
=
PyString_FromString
(
"_p_deactivate"
);
if
(
str_p_deactivate
==
NULL
)
return
;
/* Try to fake out compiler nag function */
if
(
0
)
init_zope_proxy_proxy
();
m
=
Py_InitModule3
(
"_zope_container_contained"
,
m
=
Py_InitModule3
(
"_zope_container_contained"
,
module_functions
,
module___doc__
);
if
(
m
==
NULL
)
...
...
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