mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
[wsgi] [minor] fixed flags
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user