Permalink
Browse files

lamely cleaning up cushion initialization

  • Loading branch information...
Jeremy Kelley
Jeremy Kelley committed Mar 14, 2011
1 parent f4aaca0 commit 5877c6246bf9944465fff7bd03776dd1e380c91e
Showing with 1 addition and 5 deletions.
  1. +1 −5 tornado_addons/cushion.py
@@ -172,16 +172,12 @@ def delete(self, db, data, callback=None):
class CushionDBMixin(object):
- db_default = ''
-
def prepare(self):
super(CushionDBMixin, self).prepare()
- if not self.db_default: self.db_default = ''
def db_setup(self, dbname, uri, callback, **kwa):
self.db_default = dbname
- if not self.cushion:
- self.cushion = Cushion.new(uri, io_loop=kwa.get('io_loop'))
+ self.cushion = Cushion.new(uri, io_loop=kwa.get('io_loop'))
self.cushion.open(
dbname,
callback=callback,

0 comments on commit 5877c62

Please sign in to comment.