<s> from sellmo . core . indexing . adapters import AbstractIndexAdapter <EOL> from . tasks import sync_index , build_index <EOL> class CeleryIndexAdapterWrapper ( AbstractIndexAdapter ) : <EOL> def sync_index ( self , index , documents , full = False ) : <EOL> """<STR_LIT>""" <EOL> sync_index . apply_async ( ( index , documents , full ) ) <EOL> def build_index ( <EOL> self , <EOL> index , <EOL> added_fields = None , <EOL> deleted_fields = None , <EOL> changed_fields = None , <EOL> exists = False <EOL> ) : <EOL> build_index . apply_async ( ( index , ) ) <EOL> return False <EOL> @ classmethod <EOL> def wrap ( cls , adapter ) : <EOL> wrapped = type ( <EOL> '<STR_LIT>' % adapter . __name__ , ( cls , adapter ) , { } <EOL> ) <EOL> return wrapped </s>
