I ran the test and it passed.  So I looked into what was going on in
foo.py.  Well, when making the urls, I noticed that the class was
being passed in as a string.  When changed my code to include the
class as a string, everything worked.

So I updated my code to look like:
  import web
  import handlers  #this is my file that has all of my classes

  url = ("/", "handlers.IndexHandler")
  app = web.application(urls, locals(), autoreload=True)
  ...

so passing the handler class as a string worked.  Thank you very much!

On Jun 29, 6:30 am, Anand Chitipothu <[email protected]> wrote:
> 2009/6/29 Adam <[email protected]>:
>
>
>
> >> There seems to be a subtle bug in reloader. Reload is not working if
> >> the file is modified before the first request is made, it works in all
> >> other cases.
>
> >> Can you try modifying the file after the first request is made?
>
> > I tried this and this did not work for me.  Do you maybe have example
> > code on how to make this work?
>
> There is a testcase for testing reloader and it seems to be working fine.
>
> http://github.com/webpy/webpy/blob/master/test/application.py#L37
>
> Can you try running this test on your machine?
>
> To run the test:
>
>     $ cd webpy
>     $ python test/application.py
>
> Anand
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to