diff bin/effecteval @ 1108:4b542d321c8f

effectnode runs multiple lines of code in dependency order Ignore-this: 45e7a4f332c6b1e15eefb7bd8a3ed657
author Drew Perttula <drewp@bigasterisk.com>
date Tue, 10 Jun 2014 09:29:05 +0000
parents 512381de45bd
children 8842f0c7a641
line wrap: on
line diff
--- a/bin/effecteval	Tue Jun 10 08:48:34 2014 +0000
+++ b/bin/effecteval	Tue Jun 10 09:29:05 2014 +0000
@@ -104,8 +104,12 @@
     def updateClient(self):
         # todo: if client has dropped, abort and don't get any more
         # graph updates
-        self.sendMessage({'codeLines':
-                          list(self.graph.objects(self.uri, L9['code']))})
+
+        # EffectNode knows how to put them in order. Somehow this is
+        # not triggering an update when the order changes.
+        en = EffectNode(self.graph, self.uri)
+        codeLines = [c.code for c in en.codes]
+        self.sendMessage({'codeLines': codeLines})
         
     def connectionLost(self, reason):
         log.info("websocket closed")