Re: [Zope-DB] Multiple databases connection

2006-06-08 Thread Andrew Veitch
If you add a ZSQL Method and then go to the 'Advanced' tab you can specify a 'Connection Hook'. This should be the name of a Python Script or some other method which will return the name of the database connection to use allowing you to dynamically change the DB connection. A On 9 Jun 20

[Zope-DB] Null characters & booleans

2005-04-08 Thread Andrew Veitch
We're doing a lot with relational databases and Zope at the moment. We are trying to get our code to work with as many different relational backends as possible with a minimal amount of rewriting. The first issue we've got is chr(0) appearing in input strings. Using Postres/Psycopg if we do: