Timur Izhbulatov wrote at 2005-8-11 12:16 +0400:
>I have a simple Zope product which is an ObjectManager descendant and contains
>database connection and a ZSQL method. It creates these objects during its
><Inventory instance at b7300f20>
><Connection instance at b724a980>
><SQL instance at b724a8f0>
>Everything is OK except one thing. A problem appears when I go to the
>manage_main page of the ZSQL method. It can't find any database connection
>the SQLConnectionsIDs function from the
The code of "SQLConnectionIDs" looks like this:
for o in self.objectValues():
if (hasattr(o,'_isAnSQLConnection') and o._isAnSQLConnection
Thus, a candidate "SQLConnection" must have an id.
Now, when you create an object programmatically, it is quite
easy to forget to give it an id (specifying the id in "_setObject"
is not enough; the object itself must contain the id redundantly).
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -