[Zope] RE: Cron with an external method

Loren Stafford lstaffor@dynalogic.com
Tue, 5 Mar 2002 10:14:46 -0800


Hello
>
> i use your product Xron.
>
> i add a scheduled method
> i would like start an external method from your product, but it doesn't
> work.
>
> This my code :
>
> <dtml-with "manage_addProduct['Xron']">
>         <dtml-call expr="manage_addXronDTMLMethod(
>             'Borne '+REMOTE_ADDR+'',
>             title='Décompte du temps de connexion',
>             executeAt = _.DateTime()+0.000695,
>             periodDays = 0.0,
>             file = 'MExt_Ecrire_IP_Borne(REMOTE_ADDR)',
>             )">
> </dtml-with>
>
>
> Xron is create in my folder, but the external methode is not execute.

Is the scheduled method added to the Schedule? Are it's parameters set
correctly?

Is there an entry in the STUPID_LOG_FILE? What does it say?

Does it work when you use the View tab of the scheduled method? Does it work
when you use the Trigger tab?

> Is it possible to execute an external method since xron ?
> Can you explain me how to do this ?

It's possible. I need more diagnostic information from you to see why it's
not working. The usual problem is insufficient permissions. Remember, the
scheduled method runs as Anonymous User. You have to give it proxy roles if
you want it to call any priviledged methods.

-- Loren