Exemple #1
0
 def initQueue(self):
     self.proxy = ServerProxy("http://xmlrpc.secondlife.com/cgi-bin/xmlrpc.cgi")
     self.queue = lwqueue('127.0.0.1',self.queueName)
     msg = self.queue.pop()
     while msg:
         msg = self.queue.pop()
Exemple #2
0
from lwqueue import lwqueue

queue = lwqueue("127.0.0.1", "pythontest")

queue.push("testing")
print queue.pop()

queue.push([1, 2, 5, 8])
print queue.pop()