[Zope] Date utility for Zope (V2)

Brian Sullivan briansullivan at gmail.com
Wed Nov 10 09:25:15 EST 2010


I have recurring events that I want to schedule (the events are
sending email, Twitter DMs and Facebook messages -- at least those are
the possible ones that I have identified so far). I need some flexible
way to both specify the intervals and interpret the intervals so that
the next event in a sequence can be specified in real time terms and
scheduled.

The event schedule at least in plain English could be something like "
every weekday at 8:45", "every Monday at 9:00 and 1:00", "every day at
2:00", "the first of every month at 9:00", "every other Monday". I
realize that I may have to settle for something that is not quite as
flexible as I imagine and at least for now I am just trying to see if
someone else has solved this problem or one similar and has something
I can use as a base.

I do have a way to trigger and execute the events at specific times.

On Wed, Nov 10, 2010 at 5:00 AM, Lennart Regebro <regebro at gmail.com> wrote:
> On Wed, Nov 10, 2010 at 02:00, Brian Sullivan <briansullivan at gmail.com> wrote:
>> I guess I having a mental block then. To use it from what I know I
>> would have create a Zope 2 product from it somehow or create callable
>> scripts in the ZMI from the provided code. Neither seems reasonable.
>>
>> Is there other way to use the code that I am not understanding?
>
> Well, you need to do something with the rrules, yes. And that
> obviously needs to be done in some sort of Zope product. And you will
> need to write that, so it does what you want it to do.
>
> But the dtutil module itself you simply use from Python like this:
>
> from dtutil import rrule
> rrule.whatevereblahlahlah()
>
>
> I have the feeling (but I could be wrong) that there is a very long
> distance from what you want to what you say you want. Maybe you can
> explain what you actually want to do, your usecases etc.
>
> --
> Lennart Regebro, Colliberty: http://www.colliberty.com/
> Telephone: +48 691 268 328
>


More information about the Zope mailing list