wuttamess.wutta
¶
Utilities for Wutta Framework
- wuttamess.wutta.purge_email_settings(c, dbname, appname='wutta')[source]¶
Purge production email settings for a database.
This can be used when cloning a production app DB to a test server. The general pattern is:
setup test app on test server
config file should specify test email settings
clone the production DB to test server
call this function to purge email settings from test DB
So the end result should be, the test server app can run and send emails safely using only what is specified in config file(s), since none of the production email settings remain in the test DB.
- Parameters:
dbname – Name of the database to be updated.
appname – The
appname
used to determine setting names.