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
065ee040
Commit
065ee040
authored
Jun 10, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to use new ExtensionClass destructor protocol.
parent
1c675814
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
22 deletions
+42
-22
lib/Components/ExtensionClass/ComputedAttribute.c
lib/Components/ExtensionClass/ComputedAttribute.c
+4
-3
lib/Components/ExtensionClass/Missing.c
lib/Components/ExtensionClass/Missing.c
+7
-3
lib/Components/ExtensionClass/MultiMapping.c
lib/Components/ExtensionClass/MultiMapping.c
+4
-3
lib/Components/ExtensionClass/Record.c
lib/Components/ExtensionClass/Record.c
+6
-2
lib/Components/ExtensionClass/src/ComputedAttribute.c
lib/Components/ExtensionClass/src/ComputedAttribute.c
+4
-3
lib/Components/ExtensionClass/src/Missing.c
lib/Components/ExtensionClass/src/Missing.c
+7
-3
lib/Components/ExtensionClass/src/MultiMapping.c
lib/Components/ExtensionClass/src/MultiMapping.c
+4
-3
lib/Components/ExtensionClass/src/Record.c
lib/Components/ExtensionClass/src/Record.c
+6
-2
No files found.
lib/Components/ExtensionClass/ComputedAttribute.c
View file @
065ee040
...
...
@@ -33,7 +33,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
$Id: ComputedAttribute.c,v 1.
1 1999/03/10 15:20:23
jim Exp $
$Id: ComputedAttribute.c,v 1.
2 1999/06/10 20:08:55
jim Exp $
If you have questions regarding this software,
contact:
...
...
@@ -79,6 +79,7 @@ static void
CA_dealloc
(
CA
*
self
)
{
Py_DECREF
(
self
->
callable
);
Py_DECREF
(
self
->
ob_type
);
PyMem_DEL
(
self
);
}
...
...
@@ -123,7 +124,7 @@ void
initComputedAttribute
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
1
$"
;
char
*
rev
=
"$Revision: 1.
2
$"
;
UNLESS
(
ExtensionClassImported
)
return
;
...
...
@@ -133,7 +134,7 @@ initComputedAttribute()
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"ComputedAttribute"
,
methods
,
"Provide Computed Attributes
\n\n
"
"$Id: ComputedAttribute.c,v 1.
1 1999/03/10 15:20:23
jim Exp $
\n
"
,
"$Id: ComputedAttribute.c,v 1.
2 1999/06/10 20:08:55
jim Exp $
\n
"
,
OBJECT
(
NULL
),
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
...
...
lib/Components/ExtensionClass/Missing.c
View file @
065ee040
...
...
@@ -33,7 +33,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
$Id: Missing.c,v 1.
8 1998/11/17 19:54:33
jim Exp $
$Id: Missing.c,v 1.
9 1999/06/10 20:09:47
jim Exp $
If you have questions regarding this software,
contact:
...
...
@@ -47,7 +47,7 @@
static
char
Missing_module_documentation
[]
=
""
"
\n
$Id: Missing.c,v 1.
8 1998/11/17 19:54:33
jim Exp $"
"
\n
$Id: Missing.c,v 1.
9 1999/06/10 20:09:47
jim Exp $"
;
#include "ExtensionClass.h"
...
...
@@ -64,6 +64,7 @@ static PyObject *theValue;
static
void
Missing_dealloc
(
Missing
*
self
)
{
Py_DECREF
(
self
->
ob_type
);
PyMem_DEL
(
self
);
}
...
...
@@ -288,7 +289,7 @@ void
initMissing
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
8
$"
;
char
*
rev
=
"$Revision: 1.
9
$"
;
if
(
!
((
vname
=
PyString_FromString
(
"V"
))
&&
(
Missing_dot_Value
=
PyString_FromString
(
"Missing.Value"
))
...
...
@@ -324,6 +325,9 @@ initMissing()
Revision Log:
$Log: Missing.c,v $
Revision 1.9 1999/06/10 20:09:47 jim
Updated to use new ExtensionClass destructor protocol.
Revision 1.8 1998/11/17 19:54:33 jim
new copyright.
...
...
lib/Components/ExtensionClass/MultiMapping.c
View file @
065ee040
...
...
@@ -33,7 +33,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
$Id: MultiMapping.c,v 1.
7 1998/11/17 20:20:17
jim Exp $
$Id: MultiMapping.c,v 1.
8 1999/06/10 20:10:46
jim Exp $
If you have questions regarding this software,
contact:
...
...
@@ -162,6 +162,7 @@ static void
MM_dealloc
(
MMobject
*
self
)
{
Py_XDECREF
(
self
->
data
);
Py_DECREF
(
self
->
ob_type
);
PyMem_DEL
(
self
);
}
...
...
@@ -233,13 +234,13 @@ void
initMultiMapping
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
7
$"
;
char
*
rev
=
"$Revision: 1.
8
$"
;
m
=
Py_InitModule4
(
"MultiMapping"
,
MultiMapping_methods
,
"MultiMapping -- Wrap multiple mapping objects for lookup"
"
\n\n
"
"$Id: MultiMapping.c,v 1.
7 1998/11/17 20:20:17
jim Exp $
\n
"
,
"$Id: MultiMapping.c,v 1.
8 1999/06/10 20:10:46
jim Exp $
\n
"
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
PyExtensionClass_Export
(
d
,
"MultiMapping"
,
MMtype
);
...
...
lib/Components/ExtensionClass/Record.c
View file @
065ee040
...
...
@@ -84,7 +84,7 @@
****************************************************************************/
static
char
Record_module_documentation
[]
=
""
"
\n
$Id: Record.c,v 1.
7 1999/04/16 15:21:40
jim Exp $"
"
\n
$Id: Record.c,v 1.
8 1999/06/10 20:11:53
jim Exp $"
;
#ifdef PERSISTENCE
...
...
@@ -250,6 +250,7 @@ static void
Record_dealloc
(
Record
*
self
)
{
Record_deal
(
self
);
Py_DECREF
(
self
->
ob_type
);
PyMem_DEL
(
self
);
}
...
...
@@ -591,7 +592,7 @@ void
initRecord
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
7
$"
;
char
*
rev
=
"$Revision: 1.
8
$"
;
UNLESS
(
py___record_schema__
=
PyString_FromString
(
"__record_schema__"
))
return
;
...
...
@@ -630,6 +631,9 @@ initRecord()
Revision Log:
$Log: Record.c,v $
Revision 1.8 1999/06/10 20:11:53 jim
Updated to use new ExtensionClass destructor protocol.
Revision 1.7 1999/04/16 15:21:40 jim
Added logic to fall back to getattr when getitem fails.
This is needed to make computed attributes work in ZTables,
...
...
lib/Components/ExtensionClass/src/ComputedAttribute.c
View file @
065ee040
...
...
@@ -33,7 +33,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
$Id: ComputedAttribute.c,v 1.
1 1999/03/10 15:20:23
jim Exp $
$Id: ComputedAttribute.c,v 1.
2 1999/06/10 20:08:55
jim Exp $
If you have questions regarding this software,
contact:
...
...
@@ -79,6 +79,7 @@ static void
CA_dealloc
(
CA
*
self
)
{
Py_DECREF
(
self
->
callable
);
Py_DECREF
(
self
->
ob_type
);
PyMem_DEL
(
self
);
}
...
...
@@ -123,7 +124,7 @@ void
initComputedAttribute
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
1
$"
;
char
*
rev
=
"$Revision: 1.
2
$"
;
UNLESS
(
ExtensionClassImported
)
return
;
...
...
@@ -133,7 +134,7 @@ initComputedAttribute()
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"ComputedAttribute"
,
methods
,
"Provide Computed Attributes
\n\n
"
"$Id: ComputedAttribute.c,v 1.
1 1999/03/10 15:20:23
jim Exp $
\n
"
,
"$Id: ComputedAttribute.c,v 1.
2 1999/06/10 20:08:55
jim Exp $
\n
"
,
OBJECT
(
NULL
),
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
...
...
lib/Components/ExtensionClass/src/Missing.c
View file @
065ee040
...
...
@@ -33,7 +33,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
$Id: Missing.c,v 1.
8 1998/11/17 19:54:33
jim Exp $
$Id: Missing.c,v 1.
9 1999/06/10 20:09:47
jim Exp $
If you have questions regarding this software,
contact:
...
...
@@ -47,7 +47,7 @@
static
char
Missing_module_documentation
[]
=
""
"
\n
$Id: Missing.c,v 1.
8 1998/11/17 19:54:33
jim Exp $"
"
\n
$Id: Missing.c,v 1.
9 1999/06/10 20:09:47
jim Exp $"
;
#include "ExtensionClass.h"
...
...
@@ -64,6 +64,7 @@ static PyObject *theValue;
static
void
Missing_dealloc
(
Missing
*
self
)
{
Py_DECREF
(
self
->
ob_type
);
PyMem_DEL
(
self
);
}
...
...
@@ -288,7 +289,7 @@ void
initMissing
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
8
$"
;
char
*
rev
=
"$Revision: 1.
9
$"
;
if
(
!
((
vname
=
PyString_FromString
(
"V"
))
&&
(
Missing_dot_Value
=
PyString_FromString
(
"Missing.Value"
))
...
...
@@ -324,6 +325,9 @@ initMissing()
Revision Log:
$Log: Missing.c,v $
Revision 1.9 1999/06/10 20:09:47 jim
Updated to use new ExtensionClass destructor protocol.
Revision 1.8 1998/11/17 19:54:33 jim
new copyright.
...
...
lib/Components/ExtensionClass/src/MultiMapping.c
View file @
065ee040
...
...
@@ -33,7 +33,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
$Id: MultiMapping.c,v 1.
7 1998/11/17 20:20:17
jim Exp $
$Id: MultiMapping.c,v 1.
8 1999/06/10 20:10:46
jim Exp $
If you have questions regarding this software,
contact:
...
...
@@ -162,6 +162,7 @@ static void
MM_dealloc
(
MMobject
*
self
)
{
Py_XDECREF
(
self
->
data
);
Py_DECREF
(
self
->
ob_type
);
PyMem_DEL
(
self
);
}
...
...
@@ -233,13 +234,13 @@ void
initMultiMapping
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
7
$"
;
char
*
rev
=
"$Revision: 1.
8
$"
;
m
=
Py_InitModule4
(
"MultiMapping"
,
MultiMapping_methods
,
"MultiMapping -- Wrap multiple mapping objects for lookup"
"
\n\n
"
"$Id: MultiMapping.c,v 1.
7 1998/11/17 20:20:17
jim Exp $
\n
"
,
"$Id: MultiMapping.c,v 1.
8 1999/06/10 20:10:46
jim Exp $
\n
"
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
PyExtensionClass_Export
(
d
,
"MultiMapping"
,
MMtype
);
...
...
lib/Components/ExtensionClass/src/Record.c
View file @
065ee040
...
...
@@ -84,7 +84,7 @@
****************************************************************************/
static
char
Record_module_documentation
[]
=
""
"
\n
$Id: Record.c,v 1.
7 1999/04/16 15:21:40
jim Exp $"
"
\n
$Id: Record.c,v 1.
8 1999/06/10 20:11:53
jim Exp $"
;
#ifdef PERSISTENCE
...
...
@@ -250,6 +250,7 @@ static void
Record_dealloc
(
Record
*
self
)
{
Record_deal
(
self
);
Py_DECREF
(
self
->
ob_type
);
PyMem_DEL
(
self
);
}
...
...
@@ -591,7 +592,7 @@ void
initRecord
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
7
$"
;
char
*
rev
=
"$Revision: 1.
8
$"
;
UNLESS
(
py___record_schema__
=
PyString_FromString
(
"__record_schema__"
))
return
;
...
...
@@ -630,6 +631,9 @@ initRecord()
Revision Log:
$Log: Record.c,v $
Revision 1.8 1999/06/10 20:11:53 jim
Updated to use new ExtensionClass destructor protocol.
Revision 1.7 1999/04/16 15:21:40 jim
Added logic to fall back to getattr when getitem fails.
This is needed to make computed attributes work in ZTables,
...
...
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