Hi,

I use web2admin in some applications, I was running older version of web2py 
and them I decided to upgrade to 2.8.2 for testing.

I found an issue with response.models_to_run and reported a ticket in 
web2admin repo: https://github.com/rif/web2admin/issues/9

web2admin uses a conditional model running implemented as:

if request.controller == 'web2admin':
    request.controller = 'plugin_web2admin'
    response.view = response.view.replace('web2admin', 'plugin_web2admin')
    response.models_to_run.append("^plugin_web2admin/\w+\.py")


This is used to get rid of "plugin" prefix in urls, so users can access 
using /welcome/web2admin instead of /welcome/plugin_web2admin (which is a 
bit ugly)

That practice of checking request.controller and change response.view and 
response.controller and models_to_run worked very well until version "2.2.1"

Is that changed?

Thanks.

-- 

*Bruno Rocha - @rochacbruno*
http://github.com/rochacbruno
http://brunorocha.org
http://pythonhub.com

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to