[Zope-dev] Sessions, ConflictError and emails
Hi, I have a site which is based on Zope and Plone, where users can shop around (shopping cart is stored in SESSION objects) and a separate part of the site (backend, Plone) where newsletters and such can be sent out. I have a problem however with duplicate emails being sent out to the subscribers, and this is most likely due to conflict errors being raised.. The event.log file says: 2008-02-18T21:05:23 INFO ZPublisher.Conflict ConflictError at /VirtualHostBase/http/www.site:80/VirtualHostRoot/levanger/plone/site_newsletter/nyhetsbrev-130208/testSendToMe: database conflict error (oid 0x92aa, class BTrees._OOBTree.OOBTree, serial this txn started with 0x0373d8eef99cf5bb 2008-02-18 21:02:58.503076, serial currently committed 0x0373d8f1624479aa 2008-02-18 21:05:23.031441) (58 conflicts (0 unresolved) since startup at Thu Jan 24 17:34:08 2008) Now, those errors aren't a big deal in themselves, but it is a problem when the system sends out duplicate mail messages to lots of visitors. I've seen some blurbs about deferring sending emails until the transaction has been completed, and I just discovered zope.sendmail which is said to defer sending emails until the transaction has succeeded. Is zope.sendmail a good choice? Will it work with Zope 2.9.8? Thanks, Morten ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Sessions, ConflictError and emails
On Mon, Feb 18, 2008 at 10:23 PM, <[EMAIL PROTECTED]> wrote: > Will it work with Zope 2.9.8? Yup. Nuxeo used it for it's webmail app, so it works at least. Don't know if we used the deferred email sending, though. -- Lennart Regebro: Zope and Plone consulting. http://www.colliberty.com/ +33 661 58 14 64 ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Sessions, ConflictError and emails
On Mon, Feb 18, 2008 at 11:12:27PM +0100, Lennart Regebro wrote: > On Mon, Feb 18, 2008 at 10:23 PM, <[EMAIL PROTECTED]> wrote: > > Will it work with Zope 2.9.8? > > Yup. Nuxeo used it for it's webmail app, so it works at least. Don't > know if we used the deferred email sending, though. It would be quite hard to use zope.sendmail without the deferred email bit. It was designed from the very start to defer email sending to successful transaction commits (but due to a bug didn't actually do so for a couple of years -- oops). Marius Gedminas -- An algorithm must be seen to be believed. -- D.E. Knuth signature.asc Description: Digital signature ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )