def IsInTransaction():

  return isinstance(_GetConnection(), datastore_rpc.TransactionalConnection)
Determine whether already running in transaction.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/datastore.py/IsInTransaction