[Zope3-checkins] CVS: Zope3/src/zodb/btrees - BTreeModuleTemplate.c:1.1.2.3
Barry Warsaw
barry@wooz.org
Mon, 23 Dec 2002 16:22:08 -0500
Update of /cvs-repository/Zope3/src/zodb/btrees
In directory cvs.zope.org:/tmp/cvs-serv9944
Modified Files:
Tag: NameGeddon-branch
BTreeModuleTemplate.c
Log Message:
persistence.persistence -> persistence._persistence and other module
name fixes
=== Zope3/src/zodb/btrees/BTreeModuleTemplate.c 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zodb/btrees/BTreeModuleTemplate.c:1.1.2.2 Mon Dec 23 15:21:50 2002
+++ Zope3/src/zodb/btrees/BTreeModuleTemplate.c Mon Dec 23 16:22:07 2002
@@ -42,13 +42,13 @@
/*
The tp_name slots of the various BTree types contain the fully
- qualified names of the types, e.g. Persistence.BTrees.OOBTree.OOBTree.
+ qualified names of the types, e.g. zodb.btrees.OOBTree.OOBTree.
The full name is usd to support pickling and because it is not
possible to modify the __module__ slot of a type dynamically. (This
may be a bug in Python 2.2).
*/
-#define MODULE_NAME "Persistence.BTrees." MOD_NAME_PREFIX "BTree."
+#define MODULE_NAME "zodb.btrees." MOD_NAME_PREFIX "BTree."
static PyObject *sort_str, *reverse_str, *__setstate___str,
*_bucket_type_str;
@@ -421,7 +421,7 @@
return;
/* Grab the ConflictError class */
- m = PyImport_ImportModule("Persistence.BTrees.Interfaces");
+ m = PyImport_ImportModule("zodb.btrees.interfaces");
if (m != NULL) {
c = PyObject_GetAttrString(m, "BTreesConflictError");
if (c != NULL)
@@ -441,7 +441,7 @@
#endif
/* Initialize the PyPersist_C_API and the type objects. */
- PyPersist_C_API = PyCObject_Import("Persistence.cPersistence", "C_API");
+ PyPersist_C_API = PyCObject_Import("persistence._persistence", "C_API");
if (PyPersist_C_API == NULL)
return;