def _GetDatastoreType(app=None):
 current_app = datastore_types.ResolveAppId(None)
 if (app not in (current_app, None)):
  return BaseConnection.UNKNOWN_DATASTORE
 (partition, _, _) = app_identity._ParseFullAppId(current_app)
 if partition:
  return BaseConnection.HIGH_REPLICATION_DATASTORE
 return BaseConnection.MASTER_SLAVE_DATASTORE

def _GetDatastoreType ( app = None ) : current_app = datastore_types . ResolveAppId ( None ) if ( app not in ( current_app , None ) ) : return BaseConnection . UNKNOWN_DATASTORE ( partition , _ , _ ) = app_identity . _ParseFullAppId ( current_app ) if partition : return BaseConnection . HIGH_REPLICATION_DATASTORE return BaseConnection . MASTER_SLAVE_DATASTORE
tries to get the datastore type for the given app .