Re: ClientDisconnected: connection lost
Etienne Robillard <[email protected]> Wed, 13 Jun 2018 04:12:50 -0400
| Newsgroups | gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <[email protected]> |
Le 2018-06-13 à 02:12, [email protected] a écrit : > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > How do you open your connection? > > Regards, > Thierry Hi Thierry! All of my web applications based on the ZODB backend are using libschevo internally to interface with the ClientStorage class. I believe the exact code in use for opening new connections is something like this: > def open(self): > if not self._is_open: > self.storage = ClientStorage.ClientStorage((self.host, int(self.port))) > self.zodb = DB(self.storage) > self.conn = self.zodb.open() > self._is_open = True See: https://bitbucket.org/tkadm30/libschevo/src/547c06bddf4b2f8fe5a23b0a51fd63f6cf898a3e/lib/schevo/backends/zodb.py?at=3.2&fileviewer=file-view-default#zodb.py-82 Kind regards, Etienne -- Etienne Robillard [email protected] https://www.isotopesoftware.ca/ -- You received this message because you are subscribed to the Google Groups "zodb" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.