[27538] in Source-Commits

home help back first fref pref prev next nref lref last post

python-discuss commit: Provide a short_name attribute in class Meeting

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Mon Dec 9 14:22:13 2013

Date: Mon, 9 Dec 2013 14:22:06 -0500
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201312091922.rB9JM6sa013916@drugstore.mit.edu>
To: source-commits@MIT.EDU

https://github.com/mit-athena/python-discuss/commit/49572f727f8a43aab2a1fd0da5297740333830f8
commit 49572f727f8a43aab2a1fd0da5297740333830f8
Author: Jonathan Reed <jdreed@mit.edu>
Date:   Thu Nov 21 15:42:51 2013 -0500

    Provide a short_name attribute in class Meeting
    
    Provide a convenience attribute ('short_name') that is the last
    component of the path.  c.f. 'long_name'

 discuss/client.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/discuss/client.py b/discuss/client.py
index ab1f434..ed2077e 100644
--- a/discuss/client.py
+++ b/discuss/client.py
@@ -77,6 +77,7 @@ class Meeting(object):
         self.client = client
         self.rpc = client.rpc
         self.name = name
+        self.short_name = name.split('/')[-1]
         self.id = (self.rpc.server, name)
         self.info_loaded = False
 

home help back first fref pref prev next nref lref last post