labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1606457 - /labs/panopticon/pan-ezmlm/src/asf/wsgi/ezmlm.py
Date Sun, 29 Jun 2014 11:47:09 GMT
Author: adc
Date: Sun Jun 29 11:47:08 2014
New Revision: 1606457

URL: http://svn.apache.org/r1606457
Log:
Need to return JSON

Modified:
    labs/panopticon/pan-ezmlm/src/asf/wsgi/ezmlm.py

Modified: labs/panopticon/pan-ezmlm/src/asf/wsgi/ezmlm.py
URL: http://svn.apache.org/viewvc/labs/panopticon/pan-ezmlm/src/asf/wsgi/ezmlm.py?rev=1606457&r1=1606456&r2=1606457&view=diff
==============================================================================
--- labs/panopticon/pan-ezmlm/src/asf/wsgi/ezmlm.py (original)
+++ labs/panopticon/pan-ezmlm/src/asf/wsgi/ezmlm.py Sun Jun 29 11:47:08 2014
@@ -317,20 +317,28 @@ def ezmlm_add_subscriber(list_path, subs
 
     ezmlm.add_subscriber(subscriber)
 
+    return {'added': subscriber}
+
 
 def ezmlm_add_moderator(list_path, moderator):
     ezmlm = Ezmlm(list_path)
 
     ezmlm.add_moderator(moderator)
 
+    return {'added': moderator}
+
 
 def ezmlm_remove_subscriber(list_path, subscriber):
     ezmlm = Ezmlm(list_path)
 
     ezmlm.remove_subscriber(subscriber)
 
+    return {'removed': subscriber}
+
 
 def ezmlm_remove_moderator(list_path, moderator):
     ezmlm = Ezmlm(list_path)
 
     ezmlm.remove_moderator(moderator)
+
+    return {'removed': moderator}



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message