Re: [Zope-DB] Re: Database connection in a file system product

2006-04-27 Thread Dieter Maurer
Jonas Nielsen wrote at 2006-4-27 11:56 +0200: > ... >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 ? That would work if you have a persistent object y

[Zope-DB] Re: Database connection in a file system product

2006-04-27 Thread Bob Corriher
Hi Jonas, Here is some code I use to create a DA during product installation: from Products.mxODBCZopeDA.ZopeDA import ZopeConnection security.declarePrivate('manage_afterAdd') def manage_afterAdd(self, item, container): # add mxODBC connection conn_string = readDatabaseCon

[Zope-DB] Re: Database connection in a file system product

2006-04-27 Thread Jonas Nielsen
Andreas Jung wrote: --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 no

Re: [Zope-DB] Re: Database connection in a file system product

2006-04-27 Thread Andreas Jung
--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 obje

[Zope-DB] Re: Database connection in a file system product

2006-04-27 Thread Jonas Nielsen
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 g

Re: [Zope-DB] Database connection in a file system product

2006-04-27 Thread Andreas Jung
--On 27. April 2006 10:54:23 +0200 Jonas Nielsen <[EMAIL PROTECTED]> 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 obj

[Zope-DB] Database connection in a file system product

2006-04-27 Thread Jonas Nielsen
Is it possible to store a database connection (i.e. a "Z MySQL Database Connection") in a file system product ? How ? ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db