[minor] fixed globals and patch for wsgi migration

This commit is contained in:
Anand Doshi
2013-10-10 12:03:11 +05:30
parent ddca90ef7b
commit 7798934989
5 changed files with 40 additions and 13 deletions

View File

@@ -75,7 +75,7 @@ def _simulate():
for i in xrange(runs_for):
print current_date.strftime("%Y-%m-%d")
webnotes.utils.current_date = current_date
webnotes.local.current_date = current_date
if current_date.weekday() in (5, 6):
current_date = webnotes.utils.add_days(current_date, 1)

View File

@@ -6,8 +6,8 @@ import webnotes, os
import utilities.demo.make_demo
def make_demo_app(site=None):
webnotes.flags.mute_emails = 1
webnotes.init(site=site)
webnotes.flags.mute_emails = 1
utilities.demo.make_demo.make(reset=True, simulate=False)
# setup demo user etc so that the site it up faster, while the data loads