--On 27. April 2006 11:56:39 +0200 Jonas Nielsen <[EMAIL PROTECTED]>
wrote:
Andreas Jung wrote:
Jonas Nielsen wrote:
Is it possible to store a database connection (i.e. a "Z MySQL Database
Connection") in a file system product ? How ?
What is the sense? You can not store persistent objects. You might store
a reference to the object using some _v_ variables to avoid getting
the DA everytime through acquisition (this makes only sense
if you have performance issues, do you?).
The sense is that I would like to find an easy way to install my product
without setting up the database connection manually. I guess the way to
do it is to add some code in install.py then ?
huh? Either you expect a DA under a particular ID and use acquisition to
get hold of it or you except a certain meta_type and use superValues() to
search for instances of this particular meta_type.
-aj
--
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting
pgpxvP2k2CSm9.pgp
Description: PGP signature
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db