def cmd_list(self, conn, show_tag, *kv):
        show_tag_canon, show_key = self._tagtype_lookup(show_tag)
        query = self._metadata_query(dbcore.query.MatchQuery, None, kv)

        clause, subvals = query.clause()
        statement = 'SELECT DISTINCT ' + show_key + \
                    ' FROM items WHERE ' + clause + \
                    ' ORDER BY ' + show_key
        with self.lib.transaction() as tx:
            rows = tx.query(statement, subvals)

        for row in rows:
            yield show_tag_canon + u': ' + unicode(row[0])
Update a image
dataset/ETHPy150Open beetbox/beets/beetsplug/bpd/__init__.py/Server.cmd_list--crossover with--dataset/ETHPy150Open openstack/python-openstacksdk/openstack/image/v2/_proxy.py/Proxy.update_image