Expose the Xid object in the extension module.

This commit is contained in:
Daniele Varrazzo 2010-10-14 00:54:16 +01:00
parent f0f5f095c7
commit 2f29429e88
2 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,7 @@ try:
except:
pass
from _psycopg import adapt, adapters, encodings, connection, cursor, lobject
from _psycopg import adapt, adapters, encodings, connection, cursor, lobject, Xid
from _psycopg import string_types, binary_types, new_type, register_type
from _psycopg import ISQLQuote, Notify

View File

@ -826,6 +826,7 @@ init_psycopg(void)
PyModule_AddObject(module, "cursor", (PyObject*)&cursorType);
PyModule_AddObject(module, "ISQLQuote", (PyObject*)&isqlquoteType);
PyModule_AddObject(module, "Notify", (PyObject*)&NotifyType);
PyModule_AddObject(module, "Xid", (PyObject*)&XidType);
#ifdef PSYCOPG_EXTENSIONS
PyModule_AddObject(module, "lobject", (PyObject*)&lobjectType);
#endif