if __name__ == "__main__":
web.run(urls, globals(), web.reloader)
!?
On Jan 7, 2008 9:01 PM, Alex K <[EMAIL PROTECTED]> wrote:
>
> Also why does it work fine on 0.2 but not on 0.23?
>
> On Jan 7, 1:52 pm, Alex K <[EMAIL PROTECTED]> wrote:
> > Hi Anand,
> >
> > It would be much more elegant not to have to prefix my list of urls
> > with admin. I have just tried what you proposed but unfortuantely it
> > still does not reload unless I edit and save main_site.py.
> >
> > Alex
> >
> > On Jan 7, 11:38 am, Anand Chitipothu <[EMAIL PROTECTED]> wrote:
> >
> > > On 07-Jan-08, at 3:47 PM, Alex K wrote:
> >
> > > > Hi Guys,
> >
> > > > I have just installed webpy 0.23, everything works fine but the
> > > > reloader basically only reloads the main file but not all my other
> > > > modules. Reverting back to 0.2 and the reloader works just fine.
> >
> > > > Here is a sample of my application:
> >
> > > > main_site.py:
> >
> > > > #!/usr/bin/env python
> > > > import os, web, urllib
> >
> > > > os.chdir("/projects/scripts/chiefmall/web/")
> > > > urls = (
> > > > '/?', 'search',
> > > > /admin/?', 'list_categories'
> > > > }
> >
> > > > from admin import *
> >
> > > This is the culprit.
> > > web.py is always taking the list_categories from main_site.py, not
> > > from admin.py
> >
> > > Change your urls like this and remove import *, than it will work
> fine.
> >
> > > urls = (
> > > "/?", "search",
> > > "/admin/?", "admin.list_categoties"
> > > )
> >
>
--
http://del.icio.us/iexper
http://twitter.com/qichangxing
http://webpy.org
http://blog.hi0791.com (build with web.py)
Gtalk: iexper(at)gmail.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---