[28897] in Source-Commits

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

python-discuss commit: Add support for the CREATE_MTG discuss operation

daemon@ATHENA.MIT.EDU (Alex Dehnert)
Fri Feb 21 23:13:48 2025

Date: Fri, 21 Feb 2025 23:13:32 -0500
From: "Alex Dehnert" <adehnert@mit.edu>
Message-Id: <202502220413.51M4DWo4027660@drugstore.mit.edu>
To: source-commits@mit.edu
MIME-Version: 1.0
Content-Type: text/plain

https://github.com/mit-athena/python-discuss/commit/bbdeffaa2ef25a2974d5667a87042727712dc2f5
commit bbdeffaa2ef25a2974d5667a87042727712dc2f5
Author: Alex Dehnert <adehnert@mit.edu>
Date:   Mon Feb 24 23:17:14 2014 -0500

    Add support for the CREATE_MTG discuss operation

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

diff --git a/discuss/client.py b/discuss/client.py
index 28aa87c..2894de0 100644
--- a/discuss/client.py
+++ b/discuss/client.py
@@ -65,6 +65,15 @@ class Client(object):
         reply = self.rpc.request(request)
         return reply.read_string()
 
+    @autoreconnects
+    def create_mtg(self, location, long_mtg_name, public):
+        request = USPBlock(constants.CREATE_MTG)
+        request.put_string(location)
+        request.put_string(long_mtg_name)
+        request.put_boolean(public)
+        reply = self.rpc.request(request)
+        return reply.read_long_integer()
+
     def close(self):
         """Disconnect from the server."""
 

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