From: Evan Broder Date: Thu, 19 Mar 2009 16:25:29 +0000 (-0400) Subject: Store the cell name in the PTS object. X-Git-Tag: 0.1.0~31 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-afs.git/commitdiff_plain/4f3ded9f4d087bc0677ec41283bf91a54190a723 Store the cell name in the PTS object. Signed-off-by: Evan Broder --- diff --git a/afs/_pts.pyx b/afs/_pts.pyx index 90b3327..c2465d3 100644 --- a/afs/_pts.pyx +++ b/afs/_pts.pyx @@ -134,6 +134,7 @@ cdef class PTS: server """ cdef ubik_client * client + cdef readonly object cell def __cinit__(self, cell=None, sec=1): cdef afs_int32 code @@ -167,6 +168,8 @@ cdef class PTS: code = afsconf_GetCellInfo(cdir, c_cell, "afsprot", &info) pyafs_error(code) + self.cell = info.name + if sec > 0: strncpy(prin.cell, info.name, sizeof(prin.cell)) prin.instance[0] = 0