RelStorage and PostgreSQL without 'dsn' parameter remove all other keys

Bug #408125 reported by ruda_porto on 2009-08-02
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

RelStorage support when used with postgresql driver type can be specified in two ways (with and without dsn key).

Ex, with dsn key:

rel-storage =
   type postgresql
   dsn dbname='zodb' user='ruda' host='localhost' password='12345'
   cache-module-name cmemcache

or without dns key:

rel-storage =
   type postgresql
   dbname zodb
   user ruda
   host localhost
   password 12345
   cache-module-name cmemcache

When this last format is used, plone.recipe.zope2instance try to transform all db connection keys to dsn format, but it's also "eating" all other rel-storage keys.
Follow attached a patch to solve this issue, inserting the new 'dsn' key and removing all other db connection keys.

ruda_porto (rudazz) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers