(self, who="server")
| 87 | self.cursor = None |
| 88 | |
| 89 | def connect(self, who="server"): |
| 90 | self.connection = sqlite3.connect(self.database, timeout=3, isolation_level=None, check_same_thread=False) |
| 91 | self.cursor = self.connection.cursor() |
| 92 | self.lock = threading.Lock() |
| 93 | logger.debug("REST-JSON API %s connected to IPC database" % who) |
| 94 | |
| 95 | def disconnect(self): |
| 96 | if self.cursor: |