mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
Modify org user add
This commit is contained in:
8
utils.py
8
utils.py
@@ -284,3 +284,11 @@ def get_ccnet_server_addr_port():
|
||||
return settings.CCNET_SERVER_ADDR, settings.CCNET_SERVER_PORT
|
||||
except:
|
||||
return None, None
|
||||
|
||||
def emails2list(emails):
|
||||
"""
|
||||
Split email string contacted with diffent separator.
|
||||
"""
|
||||
email_str = emails.replace(';', ',').replace('\n', ',').replace('\r', ',')
|
||||
return email_str.split(',')
|
||||
|
||||
|
Reference in New Issue
Block a user