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

David Pratt fairwinds at eastlink.ca
Thu Jun 15 18:03:47 EDT 2006


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 : zodb-dev-bounces+pperegrina=lastminute.com at zope.org [mailto:zodb-dev-bounces+pperegrina=lastminute.com at zope.org] De la part de David Pratt
> Envoyé : jeudi 15 juin 2006 19:29
> À : zodb-dev at zope.org
> Objet : Re: [ZODB-Dev] Getting clientstorage object in main.py
> 
> 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 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
>> _______________________________________________
>> For more information about ZODB, see the ZODB Wiki:
>> http://www.zope.org/Wikis/ZODB/
>>
>> ZODB-Dev mailing list  -  ZODB-Dev at zope.org
>> http://mail.zope.org/mailman/listinfo/zodb-dev
>>
> _______________________________________________
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
> 
> ZODB-Dev mailing list  -  ZODB-Dev at zope.org
> http://mail.zope.org/mailman/listinfo/zodb-dev
> 
> 
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> 
> www.mimesweeper.com
> **********************************************************************
> 


More information about the ZODB-Dev mailing list