4 cdef a.ubik_client * client
6 def __cinit__(self, cell=None, sec=1):
8 cdef a.afsconf_dir *cdir
9 cdef a.afsconf_cell info
21 raise Exception(code, "Error initializing Rx")
23 cdir = a.afsconf_Open(a.AFSDIR_CLIENT_ETC_DIRPATH)
25 raise OSError(a.errno,
26 "Error opening configuration directory (%s): %s" % \
27 (a.AFSDIR_CLIENT_ETC_DIRPATH, a.strerror(a.errno)))
28 code = a.afsconf_GetCellInfo(cdir, c_cell, "afsprot", &info)
30 raise Exception(code, "GetCellInfo: %s" % a.error_message(code))
32 def __dealloc__(self):