>
> Look interesting but that would make the service URLs a bit ugly . i would 
> prefer each UI having its own service URL not generic single method.
>
> What i want is like this :
>
> /controllers/services/case.py
> /controllers/services/dashboard.py
> /controllers/services/result_grid.py
> /controllers/services/front.py
> /controllers/services/import_wizard.py
> /controllers/services/export_wizard.py
>

You should be able to do that using howesc's method if you use routes.py to 
remove the controller function from the URL. So, you could have a 
controller called services.py with a single action called jsonrpc(), and 
that action could read the first arg or two from the URL in order to invoke 
to appropriate module and function within the module. You can hide the 
"jsonrpc" function from the URL via routes.py. Alternatively, "services" 
could simply be a function in the default.py controller instead of being a 
separate controller, and it could do the routing to the modules.

Anthony

Reply via email to