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.
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