Re: Zeo and two processes changing the zodb - not getting the up to date version of the object
Jo Gilder <[email protected]>
| Newsgroups | gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <[email protected]> |
Jim, Julien and Sanjay - thanks for all your help. I will give the monkey patching a go. On Thursday, 2 February 2017 12:53:00 UTC, Jim Fulton wrote: > > > > On Thu, Feb 2, 2017 at 4:26 AM, Jo Gilder <[email protected] > <javascript:>> wrote: > >> This didn't work, possibly for the same reason as below as I am just >> reading rather than writing to the object? >> > > No. It doesn't depend on writing, but it could be tricky to implement. > Julien's approach is much better. > > To use his approach, just: > > - Download the the module he linked to. > > - Include it in your project where it is importable. > > - Import it on startup for the process that needs to not see changes late. > > Jim > > > >> >> On Wednesday, 1 February 2017 17:46:10 UTC, Jim Fulton wrote: >>> >>> >>> >>> On Wed, Feb 1, 2017 at 12:37 PM, Jo Gilder <[email protected]> >>> wrote: >>> >>>> I'm running zeo 4. Is there any way to do this without upgrading? We >>>> are a week away from a release and upgrading zeo means upgrading lots of >>>> other packages too. >>>> >>> >>> Well, you could call some method on the client storage that makes a >>> server round-trip. >>> >>> >>> some_object._p_jar.db().storage.getTid('\x00\x00\x00\x00\x00\x00\x00\x00') >>> >>> should do the trick, but you'd need to do this before starting a >>> transaction, the details of which depend on how you're managing >>> transactions. >>> >>> Jim >>> >>> -- >>> Jim Fulton >>> http://jimfulton.info >>> >> -- >> 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] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Jim Fulton > http://jimfulton.info > -- 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.