[Zope] Idea: ZTest: Integrated Use-case based web site testing.
Andreas Kostyrka
andreas@mtg.co.at
Fri, 27 Aug 1999 17:27:56 +0200 (CEST)
On Thu, 26 Aug 1999, David Kankiewicz wrote:
> Having stayed current with all the email in most of the Zope mailing groups
> (about two months) it seems to be one tool that everyone sees as
> future/present solution, depending on ones needs. Most comment that it
> needs this or that, a Scheduler as come up before. Someone said make a web
> page and call the URL from an external program.. Its would be nice to have
> a simple interface to something like this and nicer have management without
> the need to access the underlying system.
Well, use the following setup:
1.) crontab of some user:
* * * * * wget http://myzope/schedule -o /dev/null >/dev/null 2>/dev/null
2.) DTML Method http://myzope/schedule/index_html:
<dtml-in "objectValues('Document')">
<dtml-call sequence-item>
<dtml-comment> Perhaps here one would need a more eloberate expression
</dtml-comment>
</dtml-in>
3.) Write some helper methods, that check for time expression (basically
cron syntax)
4.) Write your event handlers as in:
<dtml-if "checkTime("5 0 * * *")">
DO THE DIRTY DEAD.
</dtml-if>
Voila. ;)
Andreas
--
Andreas Kostyrka | andreas@mtg.co.at
phone: +43/1/7070750 | phone: +43/676/4091256
MTG Handelsges.m.b.H. | fax: +43/1/7065299
Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA