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
did you add
tg.scheduler = True
to your configuration?
HTH,
Puck
On 28 Mai, 19:42, "seber...@spawar.navy.mil"
Thanks. The blog I was working off of must have been obsolete. I
found other docs
that did things right including adding the boolean you mentioned.
Thanks!
Chris
Thanks,
BNF
On May 30, 2:07 am, "seber...@spawar.navy.mil"
chris
I'm a newbie on TurboGears and am wondering if it is possible to host
TurboGears on a dedicated Windows 2003 Server box running IIS that already
has some ASP and ASP.NET websites running so IIS has to process port 80 (I
could buy a separate IP address, but don't want to.) I'm wondering if anyone
has used IIS as a proxy for a TurboGears application on Windows 2003 Server
and if so, how? Thanks in advance.
--
-Mike Schinkel
http://www.mikeschinkel.com/blogs/
http://www.welldesignedurls.org
http://atlanta-web.org - http://t.oolicio.us
Yes, I've done exactly that. I used a free reverse proxy:
http://www.saltypickle.com/Home/16 With a bit of hacking it now seems to
work fine. If you don't fancy coding, it may be worth looking at one of
the cheaper commercial ones.
The main issue for me was that my app was coded to server from the root
directory of the webserver, and it was moving to /myapp. ReverseProxy
tries to automatically rewrite links to fix this, but it actually broke
things I set server.webpath in my config file, so the TG app was rooted
at /myapp, and disabled ReverseProxy's rewriting (by hacking the code).
Good luck!
Paul
Thanks Paul!
> The main issue for me was that my app was coded to server
> from the root directory of the webserver, and it was moving
> to /myapp. ReverseProxy tries to automatically rewrite links
> to fix this, but it actually broke things I set
> server.webpath in my config file, so the TG app was rooted at
> /myapp, and disabled ReverseProxy's rewriting (by hacking the code).
Do you think it's possible to get it to serve from the root? URL design is
both very important to me [1] is critical to my app so I need it to work
from the root. Possible?
--
-Mike Schinkel
http://www.mikeschinkel.com/blogs/
>Do you think it's possible to get it to serve from the root? URL design is
>both very important to me [1] is critical to my app so I need it to work
>from the root. Possible?
>
>
Sure it's possible - put ReverseProxy in the root.
You won't then be able to have anything else running on that web server
though (unless you use a different port or virtual host).
Paul
That kind of defeats the purpose, no? I was hoping it could use host
headers, i.e.
http://my-asp-net-app.com/ => ASP.NET on IIS
http://my-tg-app.com/ => TurboGears via IIS proxy
-Mike