Re: Re: Database connection in a file system product

Andreas Jung <[email protected]>
Newsgroups gmane.comp.web.zope.database
Message-ID <C97C113F52C7F9AB8D4E453F@[192.168.0.28]>

--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

_______________________________________________
Zope-DB mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/zope-db
signature.asc (application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFEUJgtCJIWIbr9KYwRArCeAJ9/e6Bf4aq6glYh8/oM7H/bIFqq1wCgx5gn
UtXMX/w9nJL56qaED8HBQ6M=
=hq/n
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.