Rev3122, Auto ignore database file
This commit is contained in:
parent
c519239d87
commit
9d511ba165
3 changed files with 10 additions and 1 deletions
|
@ -34,6 +34,13 @@ class SiteStorage(object):
|
|||
else:
|
||||
raise Exception("Directory not exists: %s" % self.directory)
|
||||
|
||||
def getDbFile(self):
|
||||
if self.isFile("dbschema.json"):
|
||||
schema = self.loadJson("dbschema.json")
|
||||
return schema["db_file"]
|
||||
else:
|
||||
return False
|
||||
|
||||
# Load db from dbschema.json
|
||||
def openDb(self, check=True):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue