[ZODB-Dev] Getting clientstorage object in main.py

2006-06-15 Thread David Pratt
Hi. I am needing to get hold of my clientstorage obj instance that was created on realize in zope.app.twisted.main.py. Can someone advise how to get a handle on it in main.py after is has it has been created (realized). Many thanks. Regards, David __

Re: [ZODB-Dev] Getting clientstorage object in main.py

2006-06-15 Thread David Pratt
Perhaps I should qualify this a bit. On realize ClientStorage is initialized during ZEO startup. main.py provides a ZODB.DB.DB instance as db but I am interested in setting an attribute of the ClientStorage instance that was initialized. Regards, David David Pratt wrote: Hi. I am needing to g

RE: [ZODB-Dev] Getting clientstorage object in main.py

2006-06-15 Thread Pascal Peregrina
I think that through the DB instance, you can access the storage instance with the "_storage" attribute. Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de David Pratt Envoyé : jeudi 15 juin 2006 19:29 À : zodb-dev@zope.org Objet : Re: [ZODB-Dev] Ge

Re: [ZODB-Dev] Getting clientstorage object in main.py

2006-06-15 Thread David Pratt
Hi Pascal. Yes, this is exactly what I was after. Many thanks for your help! Regards David Pascal Peregrina wrote: I think that through the DB instance, you can access the storage instance with the "_storage" attribute. Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL