[Zope] Real time triggers in Zope

Chris McDonough chrism@zope.com
Sat, 22 Sep 2001 15:51:17 -0400


Hi,

Brendon Grunewald wrote:
> 1. Trigger an article to become displayed at or after a certain date and
> time. Like preloaded press releases that are then "released" for view at the
> given date. Or pages that are announced, or product details that are
> launched etc.

The CMF does this by casuing every piece of content to be cataloged, and 
only returning those pieces of content in a later catalog query which 
have an effective date past the viewing time.

> 2. The Zope server should send an email notification to someone at a
> specific TIME, not when a certain submit button or website is viewed. The
> means that the server has to implement a not web interface based trigger
> (real-time). Something simple like will not work since it needs the
> particular page to be hit at the required second
> <dtml-if expr="(ZopeTime()).month()== 1  and (ZopeTime()).day()== 1 and
> (ZopeTime()).hour()== 0 and (ZopeTime()).minute()== 0 and
> (ZopeTime()).second()== 0">
> <dtml-var Send_NewYear_Notification>

Zope has no built-in scheduler. There is a product named Xron that 
evidently allows you to schedule events like this, or you can use UNIX 
cron and XML-RPC to "roll your own".

HTH!
-- 
Chris McDonough                    Zope Corporation
http://www.zope.org             http://www.zope.com
"Killing hundreds of birds with thousands of stones"