summaryrefslogtreecommitdiffstats
path: root/pykolab/wap_client/__init__.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-05-24 16:46:15 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-05-24 16:46:15 +0200
commite5a626744419ff4942785d4158373f4f6cadde3a (patch)
tree7aba240f6b6432489ef85dcc5f4e3fb92c6d2527 /pykolab/wap_client/__init__.py
parent1c5fc23018afe494306950b4ade33cf068b4d62e (diff)
downloadpykolab-e5a626744419ff4942785d4158373f4f6cadde3a.tar.gz
Correct group_add() and add group_delete()
Diffstat (limited to 'pykolab/wap_client/__init__.py')
-rw-r--r--pykolab/wap_client/__init__.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/pykolab/wap_client/__init__.py b/pykolab/wap_client/__init__.py
index 5daa61c..9274be3 100644
--- a/pykolab/wap_client/__init__.py
+++ b/pykolab/wap_client/__init__.py
@@ -246,9 +246,19 @@ def group_add(params=None):
if params == None:
params = get_group_input()
- params = json.dumps(params)
+ post = json.dumps(params)
+
+ return request('POST', 'group.add', post=post)
+
+def group_delete(params=None):
+ if params == None:
+ params = {
+ 'id': utils.ask_question("Name of group to delete", "group")
+ }
+
+ post = json.dumps(params)
- return request('POST', 'group.add', params)
+ return request('POST', 'group.delete', post=post)
def group_form_value_generate_mail(params=None):
if params == None: