From: Evan Broder Date: Sun, 22 Nov 2009 23:20:28 +0000 (-0500) Subject: Add a krbname property to afs.pts.PTEntry, which converts the X-Git-Tag: 0.1.0~4 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-afs.git/commitdiff_plain/b468bb0ba304169485223cbb146febdece12e4cc Add a krbname property to afs.pts.PTEntry, which converts the PTEntry's name to a Kerberos-style principal. Signed-off-by: Evan Broder --- diff --git a/afs/pts.py b/afs/pts.py index 8bee97e..9c44f3a 100644 --- a/afs/pts.py +++ b/afs/pts.py @@ -248,6 +248,12 @@ class PTEntry(object): self._name = val name = property(_get_name, _set_name) + def _get_krbname(self): + return self._pts._AfsToKrb5(self.name) + def _set_krbname(self, val): + self.name = self._pts._Krb5ToAfs(val) + krbname = property(_get_krbname, _set_krbname) + def _get_count(self): self._loadEntry() return self._count