diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-01-31 21:42:54 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-01-31 21:45:02 +0100 |
commit | 5d2d4bef16a7c91eb9ec49f68926d7f7ed377ba4 (patch) | |
tree | 11a3c8862d4830f2948fded2ff46839154b84b3f | |
parent | af32a0aa44a15c004446722144c5581f6fa8dcb1 (diff) | |
download | sites-5d2d4bef16a7c91eb9ec49f68926d7f7ed377ba4.tar.gz sites-5d2d4bef16a7c91eb9ec49f68926d7f7ed377ba4.tar.bz2 sites-5d2d4bef16a7c91eb9ec49f68926d7f7ed377ba4.zip |
subprocess: moved the return (for newlist by mailman) into other script
-rw-r--r-- | util.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -41,9 +41,7 @@ def create_list(listname, listadmin, passwd=None): # create list p = subprocess.Popen(['sudo', '-n', os.path.join(config.mailman_path, 'bin', 'neueliste.bash'), listname, listadmin, passwd], - stdout=subprocess.PIPE, stderr=subprocess.STDOUT, stdin=subprocess.PIPE) - print >>p.stdin, "" - + stdout=subprocess.PIPE, stderr=subprocess.STDOUT) (progress, junk) = p.communicate() return (p.returncode == 0, progress) except Exception as e: |