Skip to content
Snippets Groups Projects
Commit 3d91728c authored by Gavin M. Roy's avatar Gavin M. Roy
Browse files

Update the examples

parent e145684d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -29,14 +29,6 @@ add a widget, call PUT on /widget, to update a widget call POST on /widget/[SKU]
"""
self.session = queries.TornadoSession()
 
@gen.coroutine
def prepare(self):
try:
yield self.session.validate()
except queries.OperationalError as error:
logging.error('Error connecting to the database: %s', error)
raise web.HTTPError(503)
def options(self, *args, **kwargs):
"""Let the caller know what methods are supported
 
Loading
Loading
Loading
Loading
@@ -15,13 +15,6 @@ request and will wait until all queries are complete before progressing:
self.session = queries.TornadoSession()
 
@gen.coroutine
def prepare(self):
try:
yield self.session.validate()
except queries.OperationalError as error:
logging.error('Error connecting to the database: %s', error)
raise web.HTTPError(503)
@gen.coroutine
def get(self, *args, **kwargs):
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment