From f922faa2fa6997a287a7e322cf770f457d6780ed Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Wed, 16 Feb 2005 15:59:30 +0000 Subject: [PATCH] backport tiny modification Patches applied: * opensource@polytechnique.org--2005/platal--release--0.9.4--patch-35 tested, and work : at the end of a list creation, launch a custom command git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-477 --- bin/lists.rpc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/lists.rpc.py b/bin/lists.rpc.py index 8a75ee9..7482c9a 100755 --- a/bin/lists.rpc.py +++ b/bin/lists.rpc.py @@ -71,6 +71,7 @@ PLATAL_DOMAIN2 = get_config('Mail', 'domain2', '') ML_OWNER = get_config('Lists', 'admin_owner') VHOST_SEP = get_config('Lists', 'vhost_sep', '_') +ON_CREATE_CMD = get_config('Lists', 'on_create', '') ################################################################################ # @@ -815,6 +816,9 @@ def create_list(userdesc,perms,vhost,listname,desc,advertise,modlevel,inslevel,o mlist._UpdateRecords() mlist.Save() mlist.Unlock() + if ON_CREATE_CMD != '': + try: os.system(ON_CREATE_CMD + ' ' + name) + except: pass except: try: mlist.Unlock() -- 2.1.4