Cython sources modified to add the handling of OBIDMS columns with the

type OBI_INT
This commit is contained in:
celinemercier
2015-07-31 18:02:40 +02:00
parent 5c674715ee
commit a6abc74500
10 changed files with 186 additions and 23 deletions

View File

@ -2,10 +2,14 @@
from .capidms cimport *
cdef class OBIDMS:
cdef class OBIDMS :
def __init__(self, dms_name):
self.pointer = obi_dms(dms_name)
def __init__(self, dms_name) :
dms_name_b = dms_name.encode(encoding='UTF-8')
self.pointer = obi_dms(dms_name_b)
def __del__(self):
def __del__(self) :
obi_close_dms(self.pointer)
def list(self):
obi_list_columns(self.pointer)