thank you so much for your hints and detail explaination, anthony. i've 
separated my models and changed my code into:
models/db.py
if request.controller == 'default' and request.function == 'index' :
response.models_to_run = ['db_wizard_company.py', 'db_wizard_service.py', 
  'menu.py']
elif request.function == 'news' :
response.models_to_run = ['db_wizard_news.py', 'db_wizard_company.py', 
'db_wizard_service.py', 
  'menu.py']
elif request.function == 'service' :
response.models_to_run = ['db_wizard_company.py', 'db_wizard_service.py', 
  'menu.py']
elif request.function == 'manage_news' :
response.models_to_run = ['db_wizard_news.py', 'db_wizard_company.py', 
'db_wizard_branch.py', 
  'db_wizard_user.py', 'menu.py']
elif request.function == 'manage_service' :
response.models_to_run = ['db_wizard_service.py', 'db_wizard_company.py', 
'db_wizard_branch.py', 
  'db_wizard_user.py', 'menu.py']
elif request.function == 'manage_branch' :
response.models_to_run = ['db_wizard_company.py', 'db_wizard_branch.py', 
  'db_wizard_user.py', 'menu.py']
elif request.function == 'manage_company' :
response.models_to_run = ['db_wizard_company.py', 'db_wizard_branch.py', 
  'db_wizard_user.py', 'menu.py']
elif request.controller == 'populate' and request.function == 'index' :
response.models_to_run = ['db_wizard_company.py', 'db_wizard_branch.py', 
'db_wizard_news.py', 
  'db_wizard_service.py', 'db_wizard_user.py']
else:
response.models_to_run = ['.*']

thanks and best regards,
stifan

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to