Add options to explicitly set database uris during install
[cascardo/ipsilon.git] / ipsilon / util / data.py
index 20dd6aa..72e7f96 100644 (file)
@@ -136,6 +136,7 @@ class FileStore(Log):
         timestamp = stat.st_mtime
         if self._config is None or timestamp > self._timestamp:
             self._config = ConfigParser.RawConfigParser()
         timestamp = stat.st_mtime
         if self._config is None or timestamp > self._timestamp:
             self._config = ConfigParser.RawConfigParser()
+            self._config.optionxform = str
             self._config.read(self._filename)
         return self._config
 
             self._config.read(self._filename)
         return self._config
 
@@ -397,6 +398,7 @@ class Store(Log):
             self.error("Failed to delete data from %s: [%s]" % (table, e))
 
     def _reset_data(self, table):
             self.error("Failed to delete data from %s: [%s]" % (table, e))
 
     def _reset_data(self, table):
+        q = None
         try:
             q = self._query(self._db, table, UNIQUE_DATA_COLUMNS)
             q.drop()
         try:
             q = self._query(self._db, table, UNIQUE_DATA_COLUMNS)
             q.drop()