[Zope] Re: Help with Xron

Loren Stafford lstaffor@dynalogic.com
Thu, 24 May 2001 22:29:22 -0700


Please copy the zope mailing list on your questions so others can benefit
from the exchange.

----- Original Message -----
From: "Christopher Paulicka" <christopher_paulicka@hp.com>

> I downloaded this nice utility, and made a script that sends e-mail
> notifications for a Wiki web.  Whenever I select View or Trigger on the
> object, it sends off the notification as I expect.
>
> But I have it scheduled for daily sending at 23:00 hours, and it never
> sends!
>
> I looked for what I could, and the only thing I saw wierd was the fact
that
> the STUPID_LOG_FILE path was set to a non-existent path on my machine.  I
> have since changed it.  Could that make a difference?

Xron works even without a STUPID_LOG, so I doubt that that's a problem. But
you should always keep a log file, so you can check what Xron is doing while
you're sleeping.

> Also, any ideas what else I could do to get my notification to send on
> schedule?

Look inside the Schedule catalog. It's index_html method lists the entries
in the schedule. Is yours there? If not, go and edit the method. You don't
have to change it, if it's all set correctly, just pretend you made a change
and click the Update button (or whatever it's called). That action will
reschedule the method. Then look in the Schedule again to be sure it's
there.

Once you got STUPID_LOG working, what shows in the log? If the Dispatcher
tried to fire your method, there will be an entry in the log. Any errors
will also be noted.

To send email, your Xron Scheduled Method needs permission to use Mailhost.
An Xron Scheduled Method by default has the permissions of "Anonymous User".
You may have to give the method a proxy role that has permissions to use
Mailhost.

-- HTH
-- Loren