Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Kirill Smelkov
Zope
Commits
4baa0f8d
Commit
4baa0f8d
authored
Apr 08, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No longer acquire __roles__ explicitly.
parent
b8d13d68
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
23 deletions
+15
-23
lib/Components/ExtensionClass/Acquisition.c
lib/Components/ExtensionClass/Acquisition.c
+7
-11
lib/Components/ExtensionClass/Setup
lib/Components/ExtensionClass/Setup
+1
-1
lib/Components/ExtensionClass/src/Acquisition.c
lib/Components/ExtensionClass/src/Acquisition.c
+7
-11
No files found.
lib/Components/ExtensionClass/Acquisition.c
View file @
4baa0f8d
/*
$Id: Acquisition.c,v 1.
19 1998/03/24 16:23:19
jim Exp $
$Id: Acquisition.c,v 1.
20 1998/04/08 14:50:51
jim Exp $
Acquisition Wrappers -- Implementation of acquisition through wrappers
...
...
@@ -423,11 +423,7 @@ Wrapper_getattro_(Wrapper *self, PyObject *oname, int sob, int sco)
}
if
(
self
->
obj
)
PyErr_Clear
();
if
((
*
name
!=
'_'
#ifdef IMPLICIT_ACQUIRE___ROLES__
||
strcmp
(
name
,
"__roles__"
)
==
0
#endif
)
if
((
*
name
!=
'_'
)
&&
self
->
container
&&
sco
)
{
if
(
self
->
container
->
ob_type
==
self
->
ob_type
&&
...
...
@@ -475,9 +471,6 @@ Xaq_getattro(Wrapper *self, PyObject *oname)
if
(
*
name
==
'_'
)
{
if
(
strcmp
(
name
,
"__init__"
)
==
0
)
return
Py_FindAttr
(
OBJECT
(
self
),
oname
);
#ifdef IMPLICIT_ACQUIRE___ROLES__
if
(
strcmp
(
name
,
"__roles__"
)
==
0
)
return
Wrapper_getattro_
(
self
,
oname
,
1
,
1
);
#endif
}
if
(
*
name
==
'a'
)
...
...
@@ -858,7 +851,7 @@ void
initAcquisition
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
19
$"
;
char
*
rev
=
"$Revision: 1.
20
$"
;
PURE_MIXIN_CLASS
(
Acquirer
,
"Base class for objects that implicitly"
" acquire attributes from containers
\n
"
...
...
@@ -877,7 +870,7 @@ initAcquisition()
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"Acquisition"
,
methods
,
"Provide base classes for acquiring objects
\n\n
"
"$Id: Acquisition.c,v 1.
19 1998/03/24 16:23:19
jim Exp $
\n
"
,
"$Id: Acquisition.c,v 1.
20 1998/04/08 14:50:51
jim Exp $
\n
"
,
OBJECT
(
NULL
),
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
...
...
@@ -900,6 +893,9 @@ initAcquisition()
/*****************************************************************************
$Log: Acquisition.c,v $
Revision 1.20 1998/04/08 14:50:51 jim
No longer acquire __roles__ explicitly.
Revision 1.19 1998/03/24 16:23:19 jim
Added parens to make gcc SHUT UP!
...
...
lib/Components/ExtensionClass/Setup
View file @
4baa0f8d
*shared*
ExtensionClass ExtensionClass.c
Acquisition Acquisition.c
-DIMPLICIT_ACQUIRE___ROLES__
Acquisition Acquisition.c
MethodObject MethodObject.c
MultiMapping MultiMapping.c
ThreadLock ThreadLock.c
...
...
lib/Components/ExtensionClass/src/Acquisition.c
View file @
4baa0f8d
/*
$Id: Acquisition.c,v 1.
19 1998/03/24 16:23:19
jim Exp $
$Id: Acquisition.c,v 1.
20 1998/04/08 14:50:51
jim Exp $
Acquisition Wrappers -- Implementation of acquisition through wrappers
...
...
@@ -423,11 +423,7 @@ Wrapper_getattro_(Wrapper *self, PyObject *oname, int sob, int sco)
}
if
(
self
->
obj
)
PyErr_Clear
();
if
((
*
name
!=
'_'
#ifdef IMPLICIT_ACQUIRE___ROLES__
||
strcmp
(
name
,
"__roles__"
)
==
0
#endif
)
if
((
*
name
!=
'_'
)
&&
self
->
container
&&
sco
)
{
if
(
self
->
container
->
ob_type
==
self
->
ob_type
&&
...
...
@@ -475,9 +471,6 @@ Xaq_getattro(Wrapper *self, PyObject *oname)
if
(
*
name
==
'_'
)
{
if
(
strcmp
(
name
,
"__init__"
)
==
0
)
return
Py_FindAttr
(
OBJECT
(
self
),
oname
);
#ifdef IMPLICIT_ACQUIRE___ROLES__
if
(
strcmp
(
name
,
"__roles__"
)
==
0
)
return
Wrapper_getattro_
(
self
,
oname
,
1
,
1
);
#endif
}
if
(
*
name
==
'a'
)
...
...
@@ -858,7 +851,7 @@ void
initAcquisition
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
19
$"
;
char
*
rev
=
"$Revision: 1.
20
$"
;
PURE_MIXIN_CLASS
(
Acquirer
,
"Base class for objects that implicitly"
" acquire attributes from containers
\n
"
...
...
@@ -877,7 +870,7 @@ initAcquisition()
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"Acquisition"
,
methods
,
"Provide base classes for acquiring objects
\n\n
"
"$Id: Acquisition.c,v 1.
19 1998/03/24 16:23:19
jim Exp $
\n
"
,
"$Id: Acquisition.c,v 1.
20 1998/04/08 14:50:51
jim Exp $
\n
"
,
OBJECT
(
NULL
),
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
...
...
@@ -900,6 +893,9 @@ initAcquisition()
/*****************************************************************************
$Log: Acquisition.c,v $
Revision 1.20 1998/04/08 14:50:51 jim
No longer acquire __roles__ explicitly.
Revision 1.19 1998/03/24 16:23:19 jim
Added parens to make gcc SHUT UP!
...
...
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