Commit 20ffea9f authored by Jim Fulton's avatar Jim Fulton

Added extra ignored parent object argument to __init__ and

__setstate__.
parent 4297b87b
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
static char Record_module_documentation[] = static char Record_module_documentation[] =
"" ""
"\n$Id: Record.c,v 1.2 1997/09/26 15:05:17 jim Exp $" "\n$Id: Record.c,v 1.3 1998/01/16 21:13:28 jim Exp $"
; ;
#ifdef PERSISTENCE #ifdef PERSISTENCE
...@@ -70,12 +70,12 @@ Record_init(Record *self) ...@@ -70,12 +70,12 @@ Record_init(Record *self)
static PyObject * static PyObject *
Record___setstate__(Record *self, PyObject *args) Record___setstate__(Record *self, PyObject *args)
{ {
PyObject *state=0, **d; PyObject *state=0, *parent, **d;
int l, ls, i; int l, ls, i;
if((l=Record_init(self)) < 0) return NULL; if((l=Record_init(self)) < 0) return NULL;
UNLESS(PyArg_ParseTuple(args, "|O", &state)) return NULL; UNLESS(PyArg_ParseTuple(args, "|OO", &state, &parent)) return NULL;
if(state) if(state)
if(PyDict_Check(state)) if(PyDict_Check(state))
...@@ -512,7 +512,7 @@ void ...@@ -512,7 +512,7 @@ void
initRecord() initRecord()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.2 $"; char *rev="$Revision: 1.3 $";
UNLESS(py___record_schema__=PyString_FromString("__record_schema__")) return; UNLESS(py___record_schema__=PyString_FromString("__record_schema__")) return;
...@@ -551,6 +551,10 @@ initRecord() ...@@ -551,6 +551,10 @@ initRecord()
Revision Log: Revision Log:
$Log: Record.c,v $ $Log: Record.c,v $
Revision 1.3 1998/01/16 21:13:28 jim
Added extra ignored parent object argument to __init__ and
__setstate__.
Revision 1.2 1997/09/26 15:05:17 jim Revision 1.2 1997/09/26 15:05:17 jim
Added sequence and mapping behavior. Added sequence and mapping behavior.
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
static char Record_module_documentation[] = static char Record_module_documentation[] =
"" ""
"\n$Id: Record.c,v 1.2 1997/09/26 15:05:17 jim Exp $" "\n$Id: Record.c,v 1.3 1998/01/16 21:13:28 jim Exp $"
; ;
#ifdef PERSISTENCE #ifdef PERSISTENCE
...@@ -70,12 +70,12 @@ Record_init(Record *self) ...@@ -70,12 +70,12 @@ Record_init(Record *self)
static PyObject * static PyObject *
Record___setstate__(Record *self, PyObject *args) Record___setstate__(Record *self, PyObject *args)
{ {
PyObject *state=0, **d; PyObject *state=0, *parent, **d;
int l, ls, i; int l, ls, i;
if((l=Record_init(self)) < 0) return NULL; if((l=Record_init(self)) < 0) return NULL;
UNLESS(PyArg_ParseTuple(args, "|O", &state)) return NULL; UNLESS(PyArg_ParseTuple(args, "|OO", &state, &parent)) return NULL;
if(state) if(state)
if(PyDict_Check(state)) if(PyDict_Check(state))
...@@ -512,7 +512,7 @@ void ...@@ -512,7 +512,7 @@ void
initRecord() initRecord()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.2 $"; char *rev="$Revision: 1.3 $";
UNLESS(py___record_schema__=PyString_FromString("__record_schema__")) return; UNLESS(py___record_schema__=PyString_FromString("__record_schema__")) return;
...@@ -551,6 +551,10 @@ initRecord() ...@@ -551,6 +551,10 @@ initRecord()
Revision Log: Revision Log:
$Log: Record.c,v $ $Log: Record.c,v $
Revision 1.3 1998/01/16 21:13:28 jim
Added extra ignored parent object argument to __init__ and
__setstate__.
Revision 1.2 1997/09/26 15:05:17 jim Revision 1.2 1997/09/26 15:05:17 jim
Added sequence and mapping behavior. Added sequence and mapping behavior.
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
static char Record_module_documentation[] = static char Record_module_documentation[] =
"" ""
"\n$Id: Record.c,v 1.2 1997/09/26 15:05:17 jim Exp $" "\n$Id: Record.c,v 1.3 1998/01/16 21:13:28 jim Exp $"
; ;
#ifdef PERSISTENCE #ifdef PERSISTENCE
...@@ -70,12 +70,12 @@ Record_init(Record *self) ...@@ -70,12 +70,12 @@ Record_init(Record *self)
static PyObject * static PyObject *
Record___setstate__(Record *self, PyObject *args) Record___setstate__(Record *self, PyObject *args)
{ {
PyObject *state=0, **d; PyObject *state=0, *parent, **d;
int l, ls, i; int l, ls, i;
if((l=Record_init(self)) < 0) return NULL; if((l=Record_init(self)) < 0) return NULL;
UNLESS(PyArg_ParseTuple(args, "|O", &state)) return NULL; UNLESS(PyArg_ParseTuple(args, "|OO", &state, &parent)) return NULL;
if(state) if(state)
if(PyDict_Check(state)) if(PyDict_Check(state))
...@@ -512,7 +512,7 @@ void ...@@ -512,7 +512,7 @@ void
initRecord() initRecord()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.2 $"; char *rev="$Revision: 1.3 $";
UNLESS(py___record_schema__=PyString_FromString("__record_schema__")) return; UNLESS(py___record_schema__=PyString_FromString("__record_schema__")) return;
...@@ -551,6 +551,10 @@ initRecord() ...@@ -551,6 +551,10 @@ initRecord()
Revision Log: Revision Log:
$Log: Record.c,v $ $Log: Record.c,v $
Revision 1.3 1998/01/16 21:13:28 jim
Added extra ignored parent object argument to __init__ and
__setstate__.
Revision 1.2 1997/09/26 15:05:17 jim Revision 1.2 1997/09/26 15:05:17 jim
Added sequence and mapping behavior. Added sequence and mapping behavior.
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
static char Record_module_documentation[] = static char Record_module_documentation[] =
"" ""
"\n$Id: Record.c,v 1.2 1997/09/26 15:05:17 jim Exp $" "\n$Id: Record.c,v 1.3 1998/01/16 21:13:28 jim Exp $"
; ;
#ifdef PERSISTENCE #ifdef PERSISTENCE
...@@ -70,12 +70,12 @@ Record_init(Record *self) ...@@ -70,12 +70,12 @@ Record_init(Record *self)
static PyObject * static PyObject *
Record___setstate__(Record *self, PyObject *args) Record___setstate__(Record *self, PyObject *args)
{ {
PyObject *state=0, **d; PyObject *state=0, *parent, **d;
int l, ls, i; int l, ls, i;
if((l=Record_init(self)) < 0) return NULL; if((l=Record_init(self)) < 0) return NULL;
UNLESS(PyArg_ParseTuple(args, "|O", &state)) return NULL; UNLESS(PyArg_ParseTuple(args, "|OO", &state, &parent)) return NULL;
if(state) if(state)
if(PyDict_Check(state)) if(PyDict_Check(state))
...@@ -512,7 +512,7 @@ void ...@@ -512,7 +512,7 @@ void
initRecord() initRecord()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.2 $"; char *rev="$Revision: 1.3 $";
UNLESS(py___record_schema__=PyString_FromString("__record_schema__")) return; UNLESS(py___record_schema__=PyString_FromString("__record_schema__")) return;
...@@ -551,6 +551,10 @@ initRecord() ...@@ -551,6 +551,10 @@ initRecord()
Revision Log: Revision Log:
$Log: Record.c,v $ $Log: Record.c,v $
Revision 1.3 1998/01/16 21:13:28 jim
Added extra ignored parent object argument to __init__ and
__setstate__.
Revision 1.2 1997/09/26 15:05:17 jim Revision 1.2 1997/09/26 15:05:17 jim
Added sequence and mapping behavior. Added sequence and mapping behavior.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment