[Zope3-dev] zope.app.rdb.parseDSN is non-obvious
Anthony Baxter
anthony at interlink.com.au
Mon Aug 11 19:40:56 EDT 2003
from the docstring for this method:
We could have the following cases:
dbi://dbname
dbi://dbname;param1=value...
dbi://user:passwd/dbname
dbi://user:passwd/dbname;param1=value...
dbi://user:passwd@host:port/dbname
dbi://user:passwd@host:port/dbname;param1=value...
Trying to work out how to get an Oracle connection through this
(normal Oracle connect string syntax is user/passwd at dbname) is
an exercise in frustration until you dive into the code.
The only info on the Connection page is:
Template: dbi://username:password@host:port/dbname;param1=value..
This seems somewhat awful - why not instead simply make the
DSN entry page have text boxes for
user
password
dbname
host(:port)
additional parameters
and configure from that?
Is there a reason for keeping the current pretending-it's-a-URL based
approach?
Anthony
More information about the Zope3-dev
mailing list