Skip to content

Commit

Permalink
updating README to reflect changes in async_yield
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Kelley committed Mar 2, 2011
1 parent f20c1fe commit a50f12b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Expand Up @@ -93,12 +93,9 @@ especially when used in conjunction with async_yield.

class SomeHandler(RequestHandler, CushionDBMixin, AsyncYieldMixin):

@async_yield
def prepare(self):
yield self.db_setup('someDB', uri_to_couchdb, self.yield_cb)

@async_yield
def get(self):
yield self.db_setup('someDB', uri_to_couchdb, self.mycb)
x = yield self.db_one('some_key')
# ... do stuff wth your data in x now

0 comments on commit a50f12b

Please sign in to comment.