def has_name(self, plugin_name): """ Return True if there is a configuration for the given plugin name """ r = Publisher.query(q='publisher_name:' + plugin_name.lower()) if r['hits']['total'] > 0: return True return False