def in_transaction(self):
    return isinstance(self._conn, datastore_rpc.TransactionalConnection)
Return whether a transaction is currently active.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/ndb/context.py/Context.in_transaction