From c0e654fbd6bd85085f4b9fbf041f286c6be71874 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 22 Jun 2011 09:58:24 +0530 Subject: [PATCH] Modified install.py - Added condition such that if master sql is used for installation, core modules need not be imported. This will probably solve new company creation issue. --- cgi-bin/webnotes/install_lib/install.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cgi-bin/webnotes/install_lib/install.py b/cgi-bin/webnotes/install_lib/install.py index 5612f36ce2..2a014b4398 100755 --- a/cgi-bin/webnotes/install_lib/install.py +++ b/cgi-bin/webnotes/install_lib/install.py @@ -95,6 +95,9 @@ class Installer: """ a very simplified version, just for the time being..will eventually be deprecated once the framework stabilizes. """ + #Storing passed source path + passed_source_path = source_path + # get the path of the sql file to import if not source_path: @@ -125,7 +128,9 @@ class Installer: self.dbman.restore_database(target, source_path, self.root_password) if verbose: print "Imported from database %s" % source_path - self.import_core_module() + #If source path is passed + #i.e. importing from master sql, dont import core modules + if not passed_source_path: self.import_core_module() # framework cleanups self.framework_cleanups(target)