(self)
| 38 | raise Exception("Directory not exists: %s" % self.directory) |
| 39 | |
| 40 | def getDbFile(self): |
| 41 | if self.isFile("dbschema.json"): |
| 42 | schema = self.loadJson("dbschema.json") |
| 43 | return schema["db_file"] |
| 44 | else: |
| 45 | return False |
| 46 | |
| 47 | # Create new databaseobject with the site's schema |
| 48 | def openDb(self, close_idle=False): |