[wsgi] [minor] fixed flags

This commit is contained in:
Rushabh Mehta
2013-10-08 18:23:05 +05:30
parent 8c5a5f1ed5
commit 5d45557729
6 changed files with 13 additions and 13 deletions

View File

@@ -30,9 +30,9 @@ prob = {
}
def make(reset=False, simulate=True):
#webnotes.print_messages = True
webnotes.mute_emails = True
webnotes.rollback_on_exception = True
#webnotes.flags.print_messages = True
webnotes.flags.mute_emails = True
webnotes.flags.rollback_on_exception = True
if not webnotes.conf.demo_db_name:
raise Exception("conf.py does not have demo_db_name")

View File

@@ -6,7 +6,7 @@ import webnotes, os
import utilities.demo.make_demo
def make_demo_app(site=None):
webnotes.mute_emails = 1
webnotes.flags.mute_emails = 1
webnotes.init(site=site)
utilities.demo.make_demo.make(reset=True, simulate=False)