Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(20)  |  Call(20)  |  Derive(0)  |  Import(0)

src/k/a/kamaelia-HEAD/Sketches/MPS/Examples/AIM/MultiAIMBot.py   kamaelia(Download)
    def main(self):
        print "STARTED AIMUserTalkAdapter"
        while not self.dataReady("control"):
            for message in self.Inbox("from_user"):
                 message = cgi.escape(message,1)
                     self.send(message, "to_aim")
 
            for message in self.Inbox("from_aim"):
                 if len(message) == 3:
                     if message[0] == "message":

src/k/a/kamaelia-HEAD/Sketches/MPS/Examples/AIM/AIMBot.py   kamaelia(Download)
    def main(self):
 
        while not self.dataReady("control"):
            for message in self.Inbox("from_user"):
                 message = cgi.escape(message,1)
                     self.send(message, "to_aim")
 
            for message in self.Inbox("from_aim"):
                 if len(message) == 3:
                     if message[0] == "message":

src/k/a/kamaelia-HEAD/Sketches/MPS/BugReports/FixTests/Kamaelia/Examples/UsingChassis/Pipeline/Feedback.py   kamaelia(Download)
    def main(self):
        model = "B"
        while not self.dataReady("control"):
            self.send( model, "outbox")
            for i in self.Inbox("inbox"):

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Examples/UsingChassis/Pipeline/Feedback.py   kamaelia(Download)
    def main(self):
        model = "B"
        while not self.dataReady("control"):
            self.send( model, "outbox")
            for i in self.Inbox("inbox"):

src/k/a/kamaelia-HEAD/Sketches/MPS/Axon.DSL/Axon/DSL/MultiAIMBot.py   kamaelia(Download)
    def main(self):
        print "STARTED AIMUserTalkAdapter"
        while not self.dataReady("control"):
            for message in self.Inbox("from_user"):
                 message = cgi.escape(message,1)
                     self.send(message, "to_aim")
 
            for message in self.Inbox("from_aim"):
                 if len(message) == 3:
                     if message[0] == "message":

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Kamaelia/Apps/JMB/WSGI/_WSGIHandler.py   kamaelia(Download)
        not_done = True
        while not_done:
            for msg in self.Inbox('control'):
                #print msg
                if isinstance(msg, producerFinished):
                    not_done = False
                    self.pf_received = True
 
            for msg in self.Inbox('inbox'):

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Kamaelia/Apps/Europython09/FTP.py   kamaelia(Download)
    def main(self):
        if self.username != "" and self.password != "":
            while 1:
                for (upload_name, finalname) in self.Inbox("inbox"):
                    print ("UPLOADING", upload_name)

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Kamaelia/Experimental/PythonInterpreter.py   kamaelia(Download)
        self.send(" ")
        while True:
            for __line__ in self.Inbox("inbox"):
                _ = None
                __script__ = __script__ + __line__ + "\n"

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Kamaelia/Apps/Europython09/VideoFileTranscode.py   kamaelia(Download)
    def main(self):
        while 1:
            for sourcefile in self.Inbox("inbox"):
                shortname = os.path.basename(sourcefile)
                encoding_name = shortname.replace(".mp4", ".avi")

src/k/a/kamaelia-HEAD/Sketches/MPS/Experiments/Interpreter/PythonInterpreter.py   kamaelia(Download)
        self.send(" ")
        while True:
            for __line__ in self.Inbox("inbox"):
                _ = None
                __script__ = __script__ + __line__ + "\n"

  1 | 2  Next