[Zope-CMF] FSZSQL Methods

Andrew Veitch andrew at logicalprogression.net
Wed Mar 30 08:17:40 EST 2005


On 30 Mar 2005, at 14:02, Chris Withers wrote:
>
>> Also it would be good to allow a connection hook to be specified so 
>> that FSZSQL methods would have the full functionality of through the 
>> web ZSQL methods.
>
> What's a connection hook when it's at home?

I've got many MailManager instances that I want to connect to different 
databases. Normally you have to specify the database connection id in 
the zsql method, but the connection hook lets you define a method which 
returns a connection id. So each of my instances can define a method 
'getConnectionId' which returns the appropriate connection id for that 
instance.

A



More information about the Zope-CMF mailing list