[Zope3-checkins] CVS: Zope3/src/zope/app/mail/tests - __init__.py:1.1 test_asyncmailservice.py:1.1 test_batchmailer.py:1.1 test_directives.py:1.1 test_mailevents.py:1.1 test_simplemailer.py:1.1

Ulrich Eck ueck@net-labs.de
16 Apr 2003 16:33:26 +0200


Hi Stephan,

>   - I lied about the AsyncMailService to be async! :-) I actually have not 
>     implemented the async behavior yet; I need help from other people for
>     this feature. Should I use thread or asyncore, and how do I use either 
>     one. I am not really knowledgable in this area.

I'm not shure if i can help with my answer, but at the Rotterdam-Sprint
Jim (and I) designed a Task-Schedule.

It's purpose is, that applications can submit a Task (e.g.
batch-sendmail-task) to a persistent Schedule (maybe a global one in
future as well) that handles stuff that needs to be done asyncronous.
we wanted it for our implementation of an activity-based workflow
to ensure the encapsulation of certain (mostly longrunning) activities.

i have a (pre-namegeddon) implementation that starts a
TimeEventPublisher-Thread that publishes TimeEvents with a configurable
resolution to the local-event-service. TaskSchedules subscribe to the
next EventService for these events, get notified and process all
Task-objects that have reached their due-time.

it needs some work to get it back running but if it would help i can try
to get it done within one or two weeks (not shure what my time currently
allows me to get done for z3 - or send you my sources for review)

cheers

Ulrich Eck