merge new events (#79)

This commit is contained in:
Adrian Sampson 2013-01-29 20:53:47 -08:00
commit 5887b71089
2 changed files with 2 additions and 0 deletions

View file

@ -979,6 +979,7 @@ class Transaction(object):
the row ID of the last affected row.
"""
cursor = self.lib._connection().execute(statement, subvals)
plugins.send('database_change', lib=self.lib)
return cursor.lastrowid
def script(self, statements):

View file

@ -723,6 +723,7 @@ def main(args=None):
"""
try:
_raw_main(args)
plugins.send('cli_exit')
except UserError as exc:
message = exc.args[0] if exc.args else None
log.error(u'error: {0}'.format(message))