Hi! On Thu, Dec 31, 2009 at 09:56:32AM -0700, David wrote: > I would like to add support to SQLObject for the www.rdbhost.com service.
Welcome! > It seems that the scheme from an opener URI is used to select the > driver, but is not provided to that driver's constructor. For > example, the 'Pygresql' scheme will instantiate a These schemas are aliases for *schemas*. Only PostgresConnection has more than one aliases. And there is no 'pygresql' schema - it was removed in 0.12. > 'pgconnection::PostgresConnection', but the __init__ is not provided > the scheme name; a Pygresql user would have to provide an explicit > backend parameter to identify the Pygresql api module. I suggest that The 'backend' parameter selects a *DB API driver*. I.e., you can select psycopg2, psycopg1 or pygresql driver regardless of the schema. > dbconnection.py be modified to pass a 'scheme' parameter to the > constructors, where it would appear as part of the **kw param. A Connection class knows it's name via cls.dbName. All Connection classes except for PostgresConnection have one alias that is exactly the same as dbName. PostgresConnection has 2 aliases, but dbName is 'postgres'. If you want to change the schema probably it's best to create a new Connection class. Inherit it from PostgresConnection and redefine its dbName. > In the pgconnection init, the self.use_dsn parameter is set, and then > the self.dsn_dict and self.dsn are both created. Why are those two > built, when a dsn string is already available? The makeConnection > method uses only the self.dsn or only the self.dsn_dict, depending on > self.use_dsn. DSN strings is a rather old concept. I maintain it just in case, but I use dsn_dict and I think it's te preferred way. > What is the preferred tool for patch-making under WinXP? No idea. I develop on Linux. > Are there preconditions for adding a new database to SQLObject? License. SQLObject is LGPL-licensed. A code you want to add to SQLObject itself must be LGPL-licensed. External code (DB API drivers not included into the SQLObject code base) doesn't matter. PS. Happy New Year to all! Oleg. -- Oleg Broytman http://phd.pp.ru/ p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss