projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handles canceled payment transactions.
[platal.git]
/
bin
/
lists.rpc.py
diff --git
a/bin/lists.rpc.py
b/bin/lists.rpc.py
index
843f7c0
..
cda3511
100755
(executable)
--- a/
bin/lists.rpc.py
+++ b/
bin/lists.rpc.py
@@
-1,6
+1,6
@@
#!/usr/bin/env python
#***************************************************************************
#!/usr/bin/env python
#***************************************************************************
-#* Copyright (C) 2003-201
1
Polytechnique.org *
+#* Copyright (C) 2003-201
4
Polytechnique.org *
#* http://opensource.polytechnique.org/ *
#* *
#* This program is free software; you can redistribute it and/or modify *
#* http://opensource.polytechnique.org/ *
#* *
#* This program is free software; you can redistribute it and/or modify *
@@
-69,6
+69,7
@@
def get_config(sec, val, default=None):
MYSQL_USER = get_config('Core', 'dbuser')
MYSQL_PASS = get_config('Core', 'dbpwd')
MYSQL_USER = get_config('Core', 'dbuser')
MYSQL_PASS = get_config('Core', 'dbpwd')
+MYSQL_HOST = get_config('Core', 'dbhost')
MYSQL_DB = get_config('Core', 'dbdb')
PLATAL_DOMAIN = get_config('Mail', 'domain')
MYSQL_DB = get_config('Core', 'dbdb')
PLATAL_DOMAIN = get_config('Mail', 'domain')
@@
-167,7
+168,7
@@
def connectDB():
db=MYSQL_DB,
user=MYSQL_USER,
passwd=MYSQL_PASS,
db=MYSQL_DB,
user=MYSQL_USER,
passwd=MYSQL_PASS,
-
unix_socket='/var/run/mysqld/mysqld.sock'
)
+
host=MYSQL_HOST
)
db.ping()
db.autocommit(True)
return db.cursor()
db.ping()
db.autocommit(True)
return db.cursor()
@@
-466,6
+467,8
@@
def mass_subscribe(userdesc, perms, mlist, users):
@edit
@admin
"""
@edit
@admin
"""
+ if isinstance(users, dict):
+ users = users.values()
if not isinstance(users, list):
raise Exception("userlist must be a list")
members = mlist.getRegularMemberKeys()
if not isinstance(users, list):
raise Exception("userlist must be a list")
members = mlist.getRegularMemberKeys()