From: Carsten H. <ch...@us...> - 2005-11-17 02:24:33
|
Update of /cvsroot/informixdb/informixdb/ext In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7736/ext Modified Files: _informixdb.ec Log Message: The user shouldn't instantiate Sblobs directly, which I prevented by not making the Sblob name visible. However, that makes it hard to expose doc strings once I get around to writing them. This way is better. Do the same for Connection and Cursor since those shouldn't be instantiated directly, either. Index: _informixdb.ec =================================================================== RCS file: /cvsroot/informixdb/informixdb/ext/_informixdb.ec,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** _informixdb.ec 17 Nov 2005 01:40:06 -0000 1.37 --- _informixdb.ec 17 Nov 2005 02:24:22 -0000 1.38 *************** *** 3256,3259 **** --- 3256,3261 ---- ExposeIntConstant(LO_SEEK_CUR); ExposeIntConstant(LO_SEEK_END); + Py_INCREF(&Sblob_type); + PyModule_AddObject(m, "Sblob", (PyObject*)&Sblob_type); #endif |