Commits

Britton Smith  committed f21baa2

Updating simple server to handle payloads.

  • Participants
  • Parent commits 033b46a

Comments (0)

Files changed (1)

File simple_server.py

 import Pyro4
 import uuid
 from yt.gui.reason.basic_repl import ProgrammaticREPL
+from yt.gui.reason.bottle_mods import PayloadHandler
 
 class Executor(object):
     def __init__(self):
+        self.payload_handler = PayloadHandler()
         self.repl = ProgrammaticREPL()
     def execute(self, code):
         print "EXECUTING", code
         return self.repl.execute(code)
+    def deliver(self):
+        return self.payload_handler.deliver_payloads()
 
 executor = Executor()