[Zope-Checkins] CVS: Zope3/lib/python/Persistence - cPersistence.c:1.1.2.15
Jeremy Hylton
jeremy@zope.com
Tue, 4 Jun 2002 14:13:22 -0400
Update of /cvs-repository/Zope3/lib/python/Persistence
In directory cvs.zope.org:/tmp/cvs-serv15576
Modified Files:
Tag: Zope-3x-branch
cPersistence.c
Log Message:
BasePersistent needs an _p_deactivate() method.
=== Zope3/lib/python/Persistence/cPersistence.c 1.1.2.14 => 1.1.2.15 ===
}
+static PyMethodDef base_persist_methods[] = {
+ {"_p_deactivate", (PyCFunction)persist_deactivate, METH_NOARGS, },
+ {NULL}
+};
+
static PyMethodDef persist_methods[] = {
{"__getstate__", (PyCFunction)persist_getstate, METH_NOARGS, },
{"__setstate__", persist_setstate, METH_O, },
@@ -695,7 +700,7 @@
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
- 0, /* tp_methods */
+ base_persist_methods, /* tp_methods */
persist_members, /* tp_members */
base_persist_getsets, /* tp_getset */
0, /* tp_base */