Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Commit

Permalink
move bootstrapping code to the bottom of fluff.__init__
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyroberts committed May 15, 2014
1 parent 52c77ce commit dbd6737
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions fluff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
from fluff.signals import BACKEND_SQL, BACKEND_COUCH
from pillowtop.listener import PythonPillow
from .signals import indicator_document_updated
try:
import fluff.sync_couchdb
except ImportError:
pass
import fluff.util


Expand Down Expand Up @@ -719,3 +715,9 @@ def change_transport(self, indicators):

backend = BACKEND_SQL if self.save_direct_to_sql else BACKEND_COUCH
indicator_document_updated.send(sender=self, doc_id=new_indicator.id, diff=diff, backend=backend)

try:
# make sure this module gets called, as it is auto-registering
import fluff.sync_couchdb
except ImportError:
pass

0 comments on commit dbd6737

Please sign in to comment.