Use default port of entry_host doesn't have one

This commit is contained in:
Cédric Krier committed 2011-04-12 16:55:17 +02:00
1 parent 3f573f1d71
commit dfa2d205aa
1 file changed
+2 -1
+2 -1
View File
@@ -564,7 +564,8 @@ class DBLogin(object):
if active_profile != -1:
profile = self.profile_store[active_profile][0]
CONFIG['login.profile'] = profile
host, port = self.entry_host.get_text().split(':', 1)
host, port = (self.entry_host.get_text().split(':', 1)
+ ['8070'])[:2]
database = self.entry_database.get_text()
login = self.entry_login.get_text()
CONFIG['login.server'] = host