Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
c756f60d
Commit
c756f60d
authored
Jul 27, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added __of__ to list of attributes that don't activate object on access.
parent
54d3adc2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
12 deletions
+24
-12
src/Persistence/cPersistence.c
src/Persistence/cPersistence.c
+8
-4
src/ZODB/cPersistence.c
src/ZODB/cPersistence.c
+8
-4
src/persistent/cPersistence.c
src/persistent/cPersistence.c
+8
-4
No files found.
src/Persistence/cPersistence.c
View file @
c756f60d
/***********************************************************************
/***********************************************************************
$Id: cPersistence.c,v 1.2
3 1998/01/09 22:19:28
jim Exp $
$Id: cPersistence.c,v 1.2
4 1998/07/27 13:03:21
jim Exp $
C Persistence Module
C Persistence Module
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
*****************************************************************************/
*****************************************************************************/
static
char
*
what_string
=
"$Id: cPersistence.c,v 1.2
3 1998/01/09 22:19:28
jim Exp $"
;
static
char
*
what_string
=
"$Id: cPersistence.c,v 1.2
4 1998/07/27 13:03:21
jim Exp $"
;
#include <time.h>
#include <time.h>
#include "cPersistence.h"
#include "cPersistence.h"
...
@@ -647,7 +647,8 @@ Per_getattr(cPersistentObject *self, PyObject *oname, char *name,
...
@@ -647,7 +647,8 @@ Per_getattr(cPersistentObject *self, PyObject *oname, char *name,
return
getattrf
((
PyObject
*
)
self
,
oname
);
return
getattrf
((
PyObject
*
)
self
,
oname
);
}
}
if
(
!
(
*
name
++==
'_'
&&
*
name
++==
'_'
&&
if
(
!
(
*
name
++==
'_'
&&
*
name
++==
'_'
&&
(
strcmp
(
name
,
"dict__"
)
==
0
||
strcmp
(
name
,
"class__"
)
==
0
)))
(
strcmp
(
name
,
"dict__"
)
==
0
||
strcmp
(
name
,
"class__"
)
==
0
||
strcmp
(
name
,
"of__"
)
==
0
)))
{
{
/* Update state, if necessary */
/* Update state, if necessary */
if
(
self
->
state
==
GHOST_STATE
&&
self
->
jar
)
if
(
self
->
state
==
GHOST_STATE
&&
self
->
jar
)
...
@@ -858,7 +859,7 @@ void
...
@@ -858,7 +859,7 @@ void
initcPersistence
()
initcPersistence
()
{
{
PyObject
*
m
,
*
d
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.2
3
$"
;
char
*
rev
=
"$Revision: 1.2
4
$"
;
PATimeType
.
ob_type
=&
PyType_Type
;
PATimeType
.
ob_type
=&
PyType_Type
;
...
@@ -888,6 +889,9 @@ initcPersistence()
...
@@ -888,6 +889,9 @@ initcPersistence()
/****************************************************************************
/****************************************************************************
$Log: cPersistence.c,v $
$Log: cPersistence.c,v $
Revision 1.24 1998/07/27 13:03:21 jim
Added __of__ to list of attributes that don't activate object on access.
Revision 1.23 1998/01/09 22:19:28 jim
Revision 1.23 1998/01/09 22:19:28 jim
Fixed bug in deactivation logic. The stupid thing was calling a
Fixed bug in deactivation logic. The stupid thing was calling a
constructor when deactivating.
constructor when deactivating.
...
...
src/ZODB/cPersistence.c
View file @
c756f60d
/***********************************************************************
/***********************************************************************
$Id: cPersistence.c,v 1.2
3 1998/01/09 22:19:28
jim Exp $
$Id: cPersistence.c,v 1.2
4 1998/07/27 13:03:21
jim Exp $
C Persistence Module
C Persistence Module
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
*****************************************************************************/
*****************************************************************************/
static
char
*
what_string
=
"$Id: cPersistence.c,v 1.2
3 1998/01/09 22:19:28
jim Exp $"
;
static
char
*
what_string
=
"$Id: cPersistence.c,v 1.2
4 1998/07/27 13:03:21
jim Exp $"
;
#include <time.h>
#include <time.h>
#include "cPersistence.h"
#include "cPersistence.h"
...
@@ -647,7 +647,8 @@ Per_getattr(cPersistentObject *self, PyObject *oname, char *name,
...
@@ -647,7 +647,8 @@ Per_getattr(cPersistentObject *self, PyObject *oname, char *name,
return
getattrf
((
PyObject
*
)
self
,
oname
);
return
getattrf
((
PyObject
*
)
self
,
oname
);
}
}
if
(
!
(
*
name
++==
'_'
&&
*
name
++==
'_'
&&
if
(
!
(
*
name
++==
'_'
&&
*
name
++==
'_'
&&
(
strcmp
(
name
,
"dict__"
)
==
0
||
strcmp
(
name
,
"class__"
)
==
0
)))
(
strcmp
(
name
,
"dict__"
)
==
0
||
strcmp
(
name
,
"class__"
)
==
0
||
strcmp
(
name
,
"of__"
)
==
0
)))
{
{
/* Update state, if necessary */
/* Update state, if necessary */
if
(
self
->
state
==
GHOST_STATE
&&
self
->
jar
)
if
(
self
->
state
==
GHOST_STATE
&&
self
->
jar
)
...
@@ -858,7 +859,7 @@ void
...
@@ -858,7 +859,7 @@ void
initcPersistence
()
initcPersistence
()
{
{
PyObject
*
m
,
*
d
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.2
3
$"
;
char
*
rev
=
"$Revision: 1.2
4
$"
;
PATimeType
.
ob_type
=&
PyType_Type
;
PATimeType
.
ob_type
=&
PyType_Type
;
...
@@ -888,6 +889,9 @@ initcPersistence()
...
@@ -888,6 +889,9 @@ initcPersistence()
/****************************************************************************
/****************************************************************************
$Log: cPersistence.c,v $
$Log: cPersistence.c,v $
Revision 1.24 1998/07/27 13:03:21 jim
Added __of__ to list of attributes that don't activate object on access.
Revision 1.23 1998/01/09 22:19:28 jim
Revision 1.23 1998/01/09 22:19:28 jim
Fixed bug in deactivation logic. The stupid thing was calling a
Fixed bug in deactivation logic. The stupid thing was calling a
constructor when deactivating.
constructor when deactivating.
...
...
src/persistent/cPersistence.c
View file @
c756f60d
/***********************************************************************
/***********************************************************************
$Id: cPersistence.c,v 1.2
3 1998/01/09 22:19:28
jim Exp $
$Id: cPersistence.c,v 1.2
4 1998/07/27 13:03:21
jim Exp $
C Persistence Module
C Persistence Module
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
*****************************************************************************/
*****************************************************************************/
static
char
*
what_string
=
"$Id: cPersistence.c,v 1.2
3 1998/01/09 22:19:28
jim Exp $"
;
static
char
*
what_string
=
"$Id: cPersistence.c,v 1.2
4 1998/07/27 13:03:21
jim Exp $"
;
#include <time.h>
#include <time.h>
#include "cPersistence.h"
#include "cPersistence.h"
...
@@ -647,7 +647,8 @@ Per_getattr(cPersistentObject *self, PyObject *oname, char *name,
...
@@ -647,7 +647,8 @@ Per_getattr(cPersistentObject *self, PyObject *oname, char *name,
return
getattrf
((
PyObject
*
)
self
,
oname
);
return
getattrf
((
PyObject
*
)
self
,
oname
);
}
}
if
(
!
(
*
name
++==
'_'
&&
*
name
++==
'_'
&&
if
(
!
(
*
name
++==
'_'
&&
*
name
++==
'_'
&&
(
strcmp
(
name
,
"dict__"
)
==
0
||
strcmp
(
name
,
"class__"
)
==
0
)))
(
strcmp
(
name
,
"dict__"
)
==
0
||
strcmp
(
name
,
"class__"
)
==
0
||
strcmp
(
name
,
"of__"
)
==
0
)))
{
{
/* Update state, if necessary */
/* Update state, if necessary */
if
(
self
->
state
==
GHOST_STATE
&&
self
->
jar
)
if
(
self
->
state
==
GHOST_STATE
&&
self
->
jar
)
...
@@ -858,7 +859,7 @@ void
...
@@ -858,7 +859,7 @@ void
initcPersistence
()
initcPersistence
()
{
{
PyObject
*
m
,
*
d
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.2
3
$"
;
char
*
rev
=
"$Revision: 1.2
4
$"
;
PATimeType
.
ob_type
=&
PyType_Type
;
PATimeType
.
ob_type
=&
PyType_Type
;
...
@@ -888,6 +889,9 @@ initcPersistence()
...
@@ -888,6 +889,9 @@ initcPersistence()
/****************************************************************************
/****************************************************************************
$Log: cPersistence.c,v $
$Log: cPersistence.c,v $
Revision 1.24 1998/07/27 13:03:21 jim
Added __of__ to list of attributes that don't activate object on access.
Revision 1.23 1998/01/09 22:19:28 jim
Revision 1.23 1998/01/09 22:19:28 jim
Fixed bug in deactivation logic. The stupid thing was calling a
Fixed bug in deactivation logic. The stupid thing was calling a
constructor when deactivating.
constructor when deactivating.
...
...
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