Sfoglia il codice sorgente

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.

version-14
Anand Doshi 14 anni fa
parent
commit
c0e654fbd6
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. +6
    -1
      cgi-bin/webnotes/install_lib/install.py

+ 6
- 1
cgi-bin/webnotes/install_lib/install.py Vedi File

@@ -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)


Caricamento…
Annulla
Salva