Commit c6ffc44a authored by Andreas Jung's avatar Andreas Jung

- Launchpad ##332168: Connection.py: do not expose DB connection strings
  through exceptions
parent 4f7df40f
...@@ -134,6 +134,9 @@ Features added ...@@ -134,6 +134,9 @@ Features added
Bugs Fixed Bugs Fixed
++++++++++ ++++++++++
- Launchpad ##332168: Connection.py: do not expose DB connection strings
through exceptions
- Specified height/width of icons in ZMI listings so the table doesn't - Specified height/width of icons in ZMI listings so the table doesn't
jump around while loading. jump around while loading.
......
...@@ -194,9 +194,9 @@ class Connection(Persistent, ...@@ -194,9 +194,9 @@ class Connection(Persistent,
except: except:
t, v, tb = sys.exc_info() t, v, tb = sys.exc_info()
raise BadRequest, ( raise BadRequest, (
'<strong>Invalid connection string: </strong><CODE>%s</CODE><br>\n' '<strong>Error connecting to DB.</strong><br>\n'
'<!--\n%s\n%s\n-->\n' '<!--\n%s\n%s\n-->\n'
% (s,t,v)), tb % (t,v)), tb
finally: tb=None finally: tb=None
self._v_connected=DateTime() self._v_connected=DateTime()
......
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