def __init__(self, *args, **kwargs): config = kwargs.get('config') # We have multiple inheritance here, explicitly calling superclasses's # init is mandatory. # See http://freshfoo.com/blog/object__init__takes_no_parameters SearchBase.__init__(self, config=config) ElasticSearchBase.__init__(self, config=config)
def __init__(self, *args, **kwargs): config = kwargs.get('config') self.all_fields = self.get_fields() self.database_name_to_field_name_map = dict( (x['in_database_name'], x['name']) for x in self.all_fields.values()) # We have multiple inheritance here, explicitly calling superclasses's # init is mandatory. # See http://freshfoo.com/blog/object__init__takes_no_parameters SearchBase.__init__(self, config=config, fields=self.all_fields) ElasticSearchBase.__init__(self, config=config)
def __init__(self, *args, **kwargs): config = kwargs.get('config') ElasticSearchBase.__init__(self, config=config) self.all_fields = self.get_fields() self.database_name_to_field_name_map = dict( (x['in_database_name'], x['name']) for x in self.all_fields.values() ) # We have multiple inheritance here, explicitly calling superclasses's # init is mandatory. # See http://freshfoo.com/blog/object__init__takes_no_parameters SearchBase.__init__(self, config=config, fields=self.all_fields)
def __init__(self, config): # We have multiple inheritance here, explicitly calling superclasses's # init is mandatory. # See http://freshfoo.com/blog/object__init__takes_no_parameters SearchBase.__init__(self, config=config) ElasticSearchBase.__init__(self, config=config)