Python Twisted adbapi's runInteraction() with inlineCallbacks

def _insert_transaction(txn, some, vars):
    txn.execute('INSERT INTO [...]', [some, vars])
    return txn.execute('SELECT [...]').fetchone()

@inlineCallbacks
def insert_stuff(some, vars)
    [...]
    stuff = yield db.runInteraction(insert_transaction, some, vars)
    [...]
2016-07-27 14:28:32+0200 [_GenericHTTPChannelProtocol,0,127.0.0.1] Unhandled Error writing response
    Traceback (most recent call last):
      File "/path ...




Proudly powered by Microsoft IIS, Visual Basic .NET and DHTML. NOT.
Copyright © MKzero 2013
License Info