Mercurial > code > home > repos > homeauto
diff service/reasoning/oneShot @ 934:3bb18b7d21df
reasoning actions: generalize them a bit but then add a bunch of special cases for mpd for now
Ignore-this: 3ab80fee5836817dcd54ce6678a6089d
darcs-hash:20131009044224-312f9-b47b461e8872e4ef5c4951703ab8f13d5b848ea3
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Tue, 08 Oct 2013 21:42:24 -0700 |
parents | 6ccd930834d1 |
children | c1287ab87add |
line wrap: on
line diff
--- a/service/reasoning/oneShot Tue Oct 08 21:39:06 2013 -0700 +++ b/service/reasoning/oneShot Tue Oct 08 21:42:24 2013 -0700 @@ -8,10 +8,11 @@ prefixes = { 'room' : 'http://projects.bigasterisk.com/room/', +'shuttle': 'http://bigasterisk.com/room/livingRoom/shuttlepro/', } def expand(term): - if ':' not in term: + if ':' not in term or term.startswith(('<', '"', "'")): return term left, right = term.split(':', 1) if left in prefixes: