i think you can do it programmitacally, using the variable or create 
multiple appconfig.ini e.g. (dev_appconfig.ini), for the first suggestion, 
usually do this 
*models/db.py*
from gluon.contrib.appconfig import AppConfig
config_path = os.path.join(request.folder, 'private')
configuration = AppConfig('%s/appconfig.ini' % config_path, reload = True)
configuration_env = configuration.get('environment.type')
# this the example, to get the value of dev_smtp.sender
mail.settings.sender = configuration.get(configuration_env + '_' + 
'smtp.sender')

*private/appconfig.ini*
[environment]
type = dev
;type = test
;type = stage
;type = prod
[dev_smtp]
sender = We Care <anot...@test.com>
[test_smtp]
sender = We Care <anot...@test.com>
[stage_smtp]
sender = We Care <anot...@test.com>
[prod_smtp]
sender = We Care <anot...@test.com>

for the later suggestion, just adapt it on the file name instead 
(dev_appconfig.ini)

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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to