From 4f3ded9f4d087bc0677ec41283bf91a54190a723 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Thu, 19 Mar 2009 12:25:29 -0400 Subject: [PATCH] Store the cell name in the PTS object. Signed-off-by: Evan Broder --- afs/_pts.pyx | 3 +++ 1 file changed, 3 insertions(+) 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 -- 1.7.9.5