Commit 4341165a authored by Vincent Pelletier's avatar Vincent Pelletier

Call split on string instead of using it as a function - which is anyway not...

Call split on string instead of using it as a function - which is anyway not imported and causes code to fail when conection string specifies database host address.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14728 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 96c0d327
......@@ -126,10 +126,10 @@ class CacheTool(BaseTool):
else:
db_host = lockreq
if '@' in db_host:
db, host = split(db_host,'@',1)
db, host = db_host.split('@',1)
kwargs['db'] = db
if ':' in host:
host, port = split(host,':',1)
host, port = host.split(':',1)
kwargs['port'] = int(port)
kwargs['host'] = host
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment