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
72f736c7
Commit
72f736c7
authored
Feb 17, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in mix-in class declaration.
Added __version__.
parent
e1b8ed5f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
22 deletions
+42
-22
lib/Components/ExtensionClass/Acquisition.c
lib/Components/ExtensionClass/Acquisition.c
+13
-6
lib/Components/ExtensionClass/MethodObject.c
lib/Components/ExtensionClass/MethodObject.c
+8
-5
lib/Components/ExtensionClass/src/Acquisition.c
lib/Components/ExtensionClass/src/Acquisition.c
+13
-6
lib/Components/ExtensionClass/src/MethodObject.c
lib/Components/ExtensionClass/src/MethodObject.c
+8
-5
No files found.
lib/Components/ExtensionClass/Acquisition.c
View file @
72f736c7
/*
$Id: Acquisition.c,v 1.
1 1997/02/17 15:05:40
jim Exp $
$Id: Acquisition.c,v 1.
2 1997/02/17 16:20:11
jim Exp $
Acquisition Wrappers -- Implementation of acquisition through wrappers
...
...
@@ -59,6 +59,10 @@
Full description
$Log: Acquisition.c,v $
Revision 1.2 1997/02/17 16:20:11 jim
Fixed bug in mix-in class declaration.
Added __version__.
Revision 1.1 1997/02/17 15:05:40 jim
*** empty log message ***
...
...
@@ -529,19 +533,22 @@ void
initAcquisition
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.2 $"
;
PURE_MIXIN_CLASS
(
Acquirer
,
"Base class for objects that acquire attributes from containers
\n
"
,
Acquirer_methods
)
,
Acquirer_methods
)
;
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"Acquisition"
,
methods
,
""
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"Acquisition"
,
methods
,
""
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
init_py_names
();
PyExtensionClass_Export
(
d
,
"Acquirer"
,
AcquirerType
);
PyExtensionClass_Export
(
d
,
"Wrapper"
,
Wrappertype
);
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
));
CHECK_FOR_ERRORS
(
"can't initialize module Acquisition"
);
}
lib/Components/ExtensionClass/MethodObject.c
View file @
72f736c7
...
...
@@ -21,6 +21,7 @@ void
initMethodObject
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.2 $"
;
PURE_MIXIN_CLASS
(
Method
,
"Base class for objects that want to be treated as methods
\n
"
"
\n
"
...
...
@@ -31,15 +32,17 @@ initMethodObject()
"will call the method and pass the instance in addition to
\n
"
"other arguments. It is the responsibility of Method objects
\n
"
"to implement (or inherit) a __call__ method.
\n
"
,
Method_methods
)
Method_methods
)
;
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"MethodObject"
,
methods
,
"Method-object mix-in class module"
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"MethodObject"
,
methods
,
"Method-object mix-in class module"
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
PyExtensionClass_Export
(
d
,
"Method"
,
MethodType
);
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
));
/* Check for errors */
CHECK_FOR_ERRORS
(
"can't initialize module MethodObject"
);
...
...
lib/Components/ExtensionClass/src/Acquisition.c
View file @
72f736c7
/*
$Id: Acquisition.c,v 1.
1 1997/02/17 15:05:40
jim Exp $
$Id: Acquisition.c,v 1.
2 1997/02/17 16:20:11
jim Exp $
Acquisition Wrappers -- Implementation of acquisition through wrappers
...
...
@@ -59,6 +59,10 @@
Full description
$Log: Acquisition.c,v $
Revision 1.2 1997/02/17 16:20:11 jim
Fixed bug in mix-in class declaration.
Added __version__.
Revision 1.1 1997/02/17 15:05:40 jim
*** empty log message ***
...
...
@@ -529,19 +533,22 @@ void
initAcquisition
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.2 $"
;
PURE_MIXIN_CLASS
(
Acquirer
,
"Base class for objects that acquire attributes from containers
\n
"
,
Acquirer_methods
)
,
Acquirer_methods
)
;
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"Acquisition"
,
methods
,
""
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"Acquisition"
,
methods
,
""
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
init_py_names
();
PyExtensionClass_Export
(
d
,
"Acquirer"
,
AcquirerType
);
PyExtensionClass_Export
(
d
,
"Wrapper"
,
Wrappertype
);
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
));
CHECK_FOR_ERRORS
(
"can't initialize module Acquisition"
);
}
lib/Components/ExtensionClass/src/MethodObject.c
View file @
72f736c7
...
...
@@ -21,6 +21,7 @@ void
initMethodObject
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.2 $"
;
PURE_MIXIN_CLASS
(
Method
,
"Base class for objects that want to be treated as methods
\n
"
"
\n
"
...
...
@@ -31,15 +32,17 @@ initMethodObject()
"will call the method and pass the instance in addition to
\n
"
"other arguments. It is the responsibility of Method objects
\n
"
"to implement (or inherit) a __call__ method.
\n
"
,
Method_methods
)
Method_methods
)
;
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"MethodObject"
,
methods
,
"Method-object mix-in class module"
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"MethodObject"
,
methods
,
"Method-object mix-in class module"
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
PyExtensionClass_Export
(
d
,
"Method"
,
MethodType
);
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
));
/* Check for errors */
CHECK_FOR_ERRORS
(
"can't initialize module MethodObject"
);
...
...
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