Yeah exactly, I meant that it's a module that just by being imported
modifies some global state (in this case it modifies the global list of
preindex plugins).


On Fri, May 16, 2014 at 8:28 AM, Simon Kelly <notifications@github.com>wrote:

> In fluff/__init__.py:
>
> > @@ -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
>
> Meaning it registers itself as a PreindexPlugin:
> https://github.com/dimagi/fluff/blob/master/fluff/sync_couchdb.py#L43-43
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dimagi/fluff/pull/82/files#r12735579>
> .
>