Fix missing config value load and date event in box
This commit is contained in:
1 parent
8ac72e717e
commit
b8ac8d0185
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -54,7 +54,7 @@ class BoxesView(View):
|
|||||||
selection.select_iter(treeiter)
|
selection.select_iter(treeiter)
|
||||||
|
|
||||||
def storage_added(self, data):
|
def storage_added(self, data):
|
||||||
self.dd_storage.append(data)
|
self.dd_storage[data[0]] = data[1]
|
||||||
lst = self.combo['storage'].get_model()
|
lst = self.combo['storage'].get_model()
|
||||||
lst.append(data)
|
lst.append(data)
|
||||||
|
|
||||||
|
|||||||
@@ -316,6 +316,7 @@ if __name__ == "__main__":
|
|||||||
# TODO check database schema version
|
# TODO check database schema version
|
||||||
schema_required = 1
|
schema_required = 1
|
||||||
context.load()
|
context.load()
|
||||||
|
context.cfg['docpath'] = config.get('Documents', 'basepath')
|
||||||
context.cfg['scanner'] = config.getboolean('Documents', 'scanner')
|
context.cfg['scanner'] = config.getboolean('Documents', 'scanner')
|
||||||
context.cfg['shapedir'] = config.get('Data', 'shapedir')
|
context.cfg['shapedir'] = config.get('Data', 'shapedir')
|
||||||
if not os.path.isdir(context.cfg['shapedir']):
|
if not os.path.isdir(context.cfg['shapedir']):
|
||||||
|
|||||||
Reference in new issue
Block a user