def run(self, channel):
        self.exchange.add(channel)
        self.channel = channel
        from Axon.LikeFile import likefile, background
        background(zap=True).start()
        time.sleep(0.1)

        self.ce = likefile(self.C)
        for i in self.main():
            pass
  def run(self, channel):
    self.exchange.add(channel)
    self.channel = channel
    from Axon.LikeFile import likefile, background
    background(zap=True).start()
    time.sleep(0.1)

    self.ce = likefile(self.C)
    for i in self.main():
      pass
예제 #3
0
    def run(self, channel):
        self.exchange.add(channel)
        self.channel = channel
#        print "ZZZZZZZZ"
        from Axon.LikeFile import likefile, background
#        print "Hi",scheduler.run.threads
        background(zap=True).start()
        time.sleep(0.1)
#        print "Bye",scheduler.run.threads
#        print "Here???"

        self.ce = likefile(self.thecomponent)
        for i in self.main():
            pass
예제 #4
0
    def run(self, channel):
        self.exchange.add(channel)
        self.channel = channel
        #        print "ZZZZZZZZ"
        from Axon.LikeFile import likefile, background
        #        print "Hi",scheduler.run.threads
        background(zap=True).start()
        time.sleep(0.1)
        #        print "Bye",scheduler.run.threads
        #        print "Here???"

        self.ce = likefile(self.thecomponent)
        for i in self.main():
            pass
예제 #5
0
    def main(self):
        uri = self.request.get('uri-suffix',"/")
        p = likefile( SimpleHTTPClient() )
        p.put("http://kamaelia.sourceforge.net/%s" % uri)
        pagedata= p.get()
        p.shutdown()
        print pagedata

        resource = {
           "type"           : "text/html",
           "statuscode"     : "200",
        }
        self.send(resource, "outbox")
        page = { "data" : pagedata }
        self.send(page, "outbox")
        self.send(Axon.Ipc.producerFinished(self), "signal")
예제 #6
0
    def main(self):
        uri = self.request.get('uri-suffix', "/")
        p = likefile(SimpleHTTPClient())
        p.put("http://kamaelia.sourceforge.net/%s" % uri)
        pagedata = p.get()
        p.shutdown()
        print pagedata

        resource = {
            "type": "text/html",
            "statuscode": "200",
        }
        self.send(resource, "outbox")
        page = {"data": pagedata}
        self.send(page, "outbox")
        self.send(Axon.Ipc.producerFinished(self), "signal")