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
6c8c345f
Commit
6c8c345f
authored
Nov 07, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added compile option to implicitly acquire __roles__.
parent
a31a34fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
9 deletions
+23
-9
lib/Components/ExtensionClass/Acquisition.c
lib/Components/ExtensionClass/Acquisition.c
+11
-4
lib/Components/ExtensionClass/Setup
lib/Components/ExtensionClass/Setup
+1
-1
lib/Components/ExtensionClass/src/Acquisition.c
lib/Components/ExtensionClass/src/Acquisition.c
+11
-4
No files found.
lib/Components/ExtensionClass/Acquisition.c
View file @
6c8c345f
/*
$Id: Acquisition.c,v 1.1
0 1997/10/28 22:09:17
jim Exp $
$Id: Acquisition.c,v 1.1
1 1997/11/07 19:00:34
jim Exp $
Acquisition Wrappers -- Implementation of acquisition through wrappers
...
...
@@ -218,7 +218,11 @@ Wrapper_getattro(Wrapper *self, PyObject *oname)
if
(
self
->
obj
)
PyErr_Clear
();
name
=
PyString_AsString
(
oname
);
if
(
*
name
!=
'_'
)
if
(
*
name
!=
'_'
#ifdef IMPLICIT_ACQUIRE___ROLES__
||
strcmp
(
name
,
"__roles__"
)
==
0
#endif
)
{
if
(
*
name
++==
'a'
&&
*
name
++==
'q'
&&
*
name
++==
'_'
)
{
...
...
@@ -751,7 +755,7 @@ void
initAcquisition
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.1
0
$"
;
char
*
rev
=
"$Revision: 1.1
1
$"
;
PURE_MIXIN_CLASS
(
Acquirer
,
"Base class for objects that implicitly"
" acquire attributes from containers
\n
"
...
...
@@ -766,7 +770,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.1
0 1997/10/28 22:09:17
jim Exp $
\n
"
,
"$Id: Acquisition.c,v 1.1
1 1997/11/07 19:00:34
jim Exp $
\n
"
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
...
...
@@ -788,6 +792,9 @@ initAcquisition()
/*****************************************************************************
$Log: Acquisition.c,v $
Revision 1.11 1997/11/07 19:00:34 jim
Added compile option to implicitly acquire __roles__.
Revision 1.10 1997/10/28 22:09:17 jim
Added another argument to the aq_acquire filter signature.
Changed name of acquire method to aq_acquire. Explicit.acquire is
...
...
lib/Components/ExtensionClass/Setup
View file @
6c8c345f
*shared*
ExtensionClass ExtensionClass.c
Acquisition Acquisition.c
Acquisition Acquisition.c
-DIMPLICIT_ACQUIRE___ROLES__
MethodObject MethodObject.c
MultiMapping MultiMapping.c
ThreadLock ThreadLock.c
...
...
lib/Components/ExtensionClass/src/Acquisition.c
View file @
6c8c345f
/*
$Id: Acquisition.c,v 1.1
0 1997/10/28 22:09:17
jim Exp $
$Id: Acquisition.c,v 1.1
1 1997/11/07 19:00:34
jim Exp $
Acquisition Wrappers -- Implementation of acquisition through wrappers
...
...
@@ -218,7 +218,11 @@ Wrapper_getattro(Wrapper *self, PyObject *oname)
if
(
self
->
obj
)
PyErr_Clear
();
name
=
PyString_AsString
(
oname
);
if
(
*
name
!=
'_'
)
if
(
*
name
!=
'_'
#ifdef IMPLICIT_ACQUIRE___ROLES__
||
strcmp
(
name
,
"__roles__"
)
==
0
#endif
)
{
if
(
*
name
++==
'a'
&&
*
name
++==
'q'
&&
*
name
++==
'_'
)
{
...
...
@@ -751,7 +755,7 @@ void
initAcquisition
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.1
0
$"
;
char
*
rev
=
"$Revision: 1.1
1
$"
;
PURE_MIXIN_CLASS
(
Acquirer
,
"Base class for objects that implicitly"
" acquire attributes from containers
\n
"
...
...
@@ -766,7 +770,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.1
0 1997/10/28 22:09:17
jim Exp $
\n
"
,
"$Id: Acquisition.c,v 1.1
1 1997/11/07 19:00:34
jim Exp $
\n
"
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
...
...
@@ -788,6 +792,9 @@ initAcquisition()
/*****************************************************************************
$Log: Acquisition.c,v $
Revision 1.11 1997/11/07 19:00:34 jim
Added compile option to implicitly acquire __roles__.
Revision 1.10 1997/10/28 22:09:17 jim
Added another argument to the aq_acquire filter signature.
Changed name of acquire method to aq_acquire. Explicit.acquire is
...
...
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