Re: Undo product stops working with recent Zope (StorageTransactionError)

<[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <708463e0a39a2ab79ea71cf1e2c7ed7c@localhost>
On Tue, 24 Jan 2012 14:50:44 +0100, Hanno Schlichting
<[email protected]> wrote:
> On Tue, Jan 24, 2012 at 2:14 PM,  <[email protected]> wrote:
>> It used to work, but with the most recent versions of
>> Zope this error appears if the Undo by date is used
>> more than once:
> 
> The undo API has changed with ZODB 3.10. As noted in the changelog:
> 
> "The API for undoing multiple transactions has changed. To undo
> multiple transactions in a single transaction, pass a list of
> transaction identifiers to a database's undoMultiple method. Calling a
> database's undo method multiple times in the same transaction now
> raises an exception."
> 
> Your code calls undo multiple times, and needs to be changed accordingly.

Aha.  OK, thanks! :)

Regards,

Morten
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.