If possible use loaded db to get db file inner_path
This commit is contained in:
parent
02d45e9c39
commit
8ed7d0385d
1 changed files with 7 additions and 4 deletions
|
@ -44,11 +44,14 @@ class SiteStorage(object):
|
||||||
raise Exception("Directory not exists: %s" % self.directory)
|
raise Exception("Directory not exists: %s" % self.directory)
|
||||||
|
|
||||||
def getDbFile(self):
|
def getDbFile(self):
|
||||||
if self.isFile("dbschema.json"):
|
if self.db:
|
||||||
schema = self.loadJson("dbschema.json")
|
return self.db.schema["db_file"]
|
||||||
return schema["db_file"]
|
|
||||||
else:
|
else:
|
||||||
return False
|
if self.isFile("dbschema.json"):
|
||||||
|
schema = self.loadJson("dbschema.json")
|
||||||
|
return schema["db_file"]
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
# Create new databaseobject with the site's schema
|
# Create new databaseobject with the site's schema
|
||||||
@util.Noparallel()
|
@util.Noparallel()
|
||||||
|
|
Loading…
Reference in a new issue