On Feb 23, 2011, at 10:01 AM, pbreit wrote:
> I could see supporting the editing of app-specific routes. But as you note, 
> this requires a web server restart which could trip people up.

It's possible to call rewrite.load, which will reload the routes without 
requiring a restart. However, as load is currently written, syntax errors (even 
in app-specific routes files) are fatal.

> 
> I still have a very difficult time restarting web2py. Is that something that 
> could be triggered in admin?

In principle, it could, but it'd be a function of the operation mode (which of 
the handlers is being used). It'd require non-trivial changes, though.

> 
> This also might suggest that app-specific routing should be "On" by default. 
> That doesn't necessarily mean there has to exist an app-specific routes.py 
> file but if one is added, it wold get used without needing to set up routing 
> at the web2py level. Or is that how it already works?

Everything gets loaded (or reloaded) at once.

Reply via email to