Hi Chris,

did you add
tg.scheduler = True
to your configuration?

HTH,
  Puck


On 28 Mai, 19:42, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I'm trying to run a certain controller daily.  At top of my controller
> file I imported the turbogears.scheduler and I added something like
> the following at bottom of my controllers file too:
>
> def set_up_my_daily_controller():
>         def daily():
>                 open("this_is_a_test", "w").write("wow great")
>         turbogears.scheduler.add_weekday_task(daily, range(1,8),
> (3,0))
>
> turbogears.startup.call_on_startup.append(set_up_my_daily_controller)
>
> How come I don't see the ``this_is_a_test'' file created anywhere?
>
> Thanks!
>
> Chris


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to