diff service/reasoning/reasoning.py @ 1411:21d0cd98ef7a

mock output mode Ignore-this: a7b9dd184a2f3c811cd7c1d3ca4a002c darcs-hash:af6eb3949372201ed9b414ce038849c4ce8423cf
author drewp <drewp@bigasterisk.com>
date Wed, 24 Jul 2019 00:34:41 -0700
parents 69b3f5b3aeda
children 5290df01d911
line wrap: on
line diff
--- a/service/reasoning/reasoning.py	Tue Jul 23 17:40:55 2019 -0700
+++ b/service/reasoning/reasoning.py	Wed Jul 24 00:34:41 2019 -0700
@@ -49,10 +49,10 @@
 )
 
 class Reasoning(object):
-    def __init__(self):
+    def __init__(self, mockOutput=False):
         self.prevGraph = None
 
-        self.actions = Actions(sendToLiveClients)
+        self.actions = Actions(sendToLiveClients, mockOutput=mockOutput)
 
         self.rulesN3 = "(not read yet)"
         self.inferred = Graph() # gets replaced in each graphChanged call
@@ -304,9 +304,10 @@
     -r                Verbose log on the reasoning phase and web stuff
     -o                Verbose log on the actions/output phase
     -v                Everywhere verbose
+    --mockoutput      Don't make outgoing requests
     """)
-    
-    r = Reasoning()
+
+    r = Reasoning(arg['--mockoutput'])
     configLogging(arg)
     reactor.listenTCP(9071, Application(r), interface='::')
     reactor.run()