From: x2000habouzit Date: Wed, 11 Oct 2006 10:44:20 +0000 (+0000) Subject: copy the template before subscribing people X-Git-Tag: xorg/0.9.11~18 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=3a0be35eaf9edf5fda62472999012ad51800fb66;p=platal.git copy the template before subscribing people git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.11@965 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/bin/lists.rpc.py b/bin/lists.rpc.py index 30a9b25..6a855fa 100755 --- a/bin/lists.rpc.py +++ b/bin/lists.rpc.py @@ -818,6 +818,10 @@ def create_list(userdesc, perms, vhost, listname, desc, advertise, modlevel, ins mlist.Unlock() + if ON_CREATE_CMD != '': + try: os.system(ON_CREATE_CMD + ' ' + name) + except: pass + check_options(userdesc, perms, vhost, listname.lower(), True) mass_subscribe(userdesc, perms, vhost, listname.lower(), members) @@ -826,9 +830,6 @@ def create_list(userdesc, perms, vhost, listname, desc, advertise, modlevel, ins mlist._UpdateRecords() mlist.Save() mlist.Unlock() - if ON_CREATE_CMD != '': - try: os.system(ON_CREATE_CMD + ' ' + name) - except: pass except: try: mlist.Unlock()