in python/thrift/appengine-ssl-gateway/appengine/bigtable.py [0:0]
def get(self):
connection = CreateConnection()
table = 'mytable'
status = 'invalid'
try:
connection.delete_table(table, disable=True)
status = 'deleted'
except Exception as e:
# FIXME(mbrukman): the actual exception thrown is IOError, but
# trying to catch it specifically does not seem to work.
notFound = 'TableNotFoundException: %s' % table
if notFound in repr(e):
status = 'not found'
variables = {'table': table, 'status': status}
template = JINJA_ENVIRONMENT.get_template('web/delete.jinja')
self.response.write(template.render(variables))