myapp/MaintenanceCheck.py
def make_datastore_readonly():
		"""Throw ReadOnlyError on put and delete operations."""
		def hook(service, call, request, response):
			assert(service == 'datastore_v3')
			if call in ('Put', 'Delete'):
				raise CapabilityDisabledError('Datastore is in read-only mode')
		apiproxy_stub_map.apiproxy.GetPreCallHooks().Push('readonly_datastore', hook, 'datastore_v3')
Throw ReadOnlyError on put and delete operations.
Throw ReadOnlyError on put and delete operations.
Throw ReadOnlyError on put and delete operations .
def make_datastore_readonly():
		def hook(service, call, request, response):
			assert(service == 'datastore_v3')
			if call in ('Put', 'Delete'):
				raise CapabilityDisabledError('Datastore is in read-only mode')
		apiproxy_stub_map.apiproxy.GetPreCallHooks().Push('readonly_datastore', hook, 'datastore_v3')
def make_datastore_readonly ( ) : def hook ( service , call , request , response ) : assert ( service == 'datastore_v3' ) if call in ( 'Put' , 'Delete' ) : raise CapabilityDisabledError ( 'Datastore is in read-only mode' ) apiproxy_stub_map . apiproxy . GetPreCallHooks ( ) . Push ( 'readonly_datastore' , hook , 'datastore_v3' )
Throw ReadOnlyError on put and delete operations.
Throw ReadOnlyError on put and delete operations .
"""Throw ReadOnlyError on put and delete operations."""