[Zope-CMF] Re: FSZSQL Methods
Tres Seaver
tseaver at zope.com
Thu Mar 31 09:58:30 EST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andrew Veitch wrote:
>
> 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.
+1 on folding in the patch Andrew has uploaded.
Tres.
- --
===============================================================
Tres Seaver tseaver at zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCTBAVGqWXf00rNCgRAuFoAKCSI22bwYe9jKP1SR+1IZEkdioPRgCcCw8t
tgmtuySedsU5dSZbQz8GbK4=
=VQCA
-----END PGP SIGNATURE-----
More information about the Zope-CMF
mailing list