[Zodb-checkins] CVS: Zope2/lib/python/ZODB - cPersistence.c:1.41

Jim Fulton jim@digicool.com
Tue, 27 Mar 2001 18:00:42 -0500 (EST)


Update of /cvs-repository/Zope2/lib/python/ZODB
In directory korak:/tmp/cvs-serv7007

Modified Files:
	cPersistence.c 
Log Message:
Fixed broken tp_name for Overridable. Also added doc strings
for types.

The question is, do we even need Overridable any more?



--- Updated File cPersistence.c in package Zope2/lib/python/ZODB --
--- cPersistence.c	2001/02/15 16:18:22	1.40
+++ cPersistence.c	2001/03/27 23:00:40	1.41
@@ -730,7 +730,8 @@
 	(getattrofunc)Per_getattro,	/*tp_getattr with object key*/
 	(setattrofunc)Per_setattro,	/*tp_setattr with object key*/
 	/* Space for future expansion */
-	0L,0L,"",
+	0L,0L,
+        "Base class for objects that are stored in their own database records",
 	METHOD_CHAIN(Per_methods),
 	PERSISTENCE_FLAGS,
 };
@@ -738,7 +739,7 @@
 static PyExtensionClass Overridable = {
 	PyObject_HEAD_INIT(NULL)
 	0,				/*ob_size*/
-	"Persistent",			/*tp_name*/
+	"Overridable",			/*tp_name*/
 	sizeof(cPersistentObject),	/*tp_basicsize*/
 	0,				/*tp_itemsize*/
 	/* methods */
@@ -757,7 +758,9 @@
 	(getattrofunc)Per_getattro,	/*tp_getattr with object key*/
 	(setattrofunc)Per_setattro,	/*tp_setattr with object key*/
 	/* Space for future expansion */
-	0L,0L,"",
+	0L,0L,
+        "Hacked base class used in Zope's App.Uninstalled.BrokenClass\n\n"
+        "Not sure if this is still needed",
 	METHOD_CHAIN(Per_methods),
 	EXTENSIONCLASS_BASICNEW_FLAG | PERSISTENT_TYPE_FLAG
 };