DB-API: don't emit if in batch mode
This commit is contained in:
parent
3b3c2e5d34
commit
fcddb03ef1
@ -371,8 +371,8 @@ class DBAPI(DbGeneric):
|
|||||||
# FIXME: need a User GUI update callback here:
|
# FIXME: need a User GUI update callback here:
|
||||||
self.reindex_reference_map(lambda percent: percent)
|
self.reindex_reference_map(lambda percent: percent)
|
||||||
self.dbapi.commit()
|
self.dbapi.commit()
|
||||||
|
if not txn.batch:
|
||||||
# Now, emit signals:
|
# Now, emit signals:
|
||||||
import pdb; pdb.set_trace()
|
|
||||||
for (obj_type_val, txn_type_val) in list(txn):
|
for (obj_type_val, txn_type_val) in list(txn):
|
||||||
if txn_type_val == TXNDEL:
|
if txn_type_val == TXNDEL:
|
||||||
handles = [handle for (handle, data) in
|
handles = [handle for (handle, data) in
|
||||||
@ -381,8 +381,8 @@ class DBAPI(DbGeneric):
|
|||||||
handles = [handle for (handle, data) in
|
handles = [handle for (handle, data) in
|
||||||
txn[(obj_type_val, txn_type_val)]
|
txn[(obj_type_val, txn_type_val)]
|
||||||
if (handle, None) not in txn[(obj_type_val, TXNDEL)]]
|
if (handle, None) not in txn[(obj_type_val, TXNDEL)]]
|
||||||
signal = KEY_TO_NAME_MAP[obj_type_val] + action[txn_type_val]
|
|
||||||
if handles:
|
if handles:
|
||||||
|
signal = KEY_TO_NAME_MAP[obj_type_val] + action[txn_type_val]
|
||||||
self.emit(signal, (handles, ))
|
self.emit(signal, (handles, ))
|
||||||
self.transaction = None
|
self.transaction = None
|
||||||
msg = txn.get_description()
|
msg = txn.get_description()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user