Mercurial > code > home > repos > light9
changeset 1139:d8b25edf6c74
fix dropping of subs onto effecteval
Ignore-this: 7150db275055597cdb9a5347910b032b
author | drewp@bigasterisk.com |
---|---|
date | Sat, 14 Jun 2014 07:21:32 +0000 |
parents | a073565e826e |
children | 3f7de54de79e |
files | bin/effecteval |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/effecteval Sat Jun 14 07:15:55 2014 +0000 +++ b/bin/effecteval Sat Jun 14 07:21:32 2014 +0000 @@ -47,16 +47,16 @@ with graph.currentState( tripleFilter=(dropped, None, None)) as g: - droppedTypes = g.objects(dropped, RDF.type) + droppedTypes = list(g.objects(dropped, RDF.type)) droppedLabel = g.label(dropped) - droppedCodes = g.objects(dropped, L9['code']) + droppedCodes = list(g.objects(dropped, L9['code'])) if L9['EffectClass'] in droppedTypes: quads.extend([ (effect, RDFS.label, droppedLabel, ctx), (effect, RDF.type, dropped, ctx), ] + [(effect, L9['code'], c, ctx) for c in droppedCodes]) - elif L9['Curve'] in droppedTypes: + elif L9['Submaster'] in droppedTypes: curve = graph.sequentialUri(song + "/curve-") cr = CurveResource(graph, curve) cr.newCurve(ctx, label=Literal('sub %s' % droppedLabel))