Mercurial > code > home > repos > light9
view bin/listsongs @ 710:1fb8f18a8847
fix jsonlib dep in ascoltami
Ignore-this: c34d510ddb5dd04d4f31d0c7caa249c5
author | drewp@bigasterisk.com |
---|---|
date | Sun, 10 Jun 2012 18:26:21 +0000 |
parents | 8a59efa577c1 |
children | d8202a0a7fd5 |
line wrap: on
line source
#!/usr/bin/python """for completion, print the available song uris on stdout in .zshrc: function _songs { local expl; _description files expl 'songs'; compadd "$expl[@]" - `${LIGHT9_SHOW}/../../bin/listsongs` } compdef _songs curvecalc """ import run_local from light9 import showconfig from light9.namespaces import L9 from rdflib import RDF graph = showconfig.getGraph() for song in graph.subjects(RDF.type, L9['Song']): print song