Пример #1
0
 def _readOut(self, data):
     try:
         self.readSExpr(sexpr.str2sexpr(data))
     except ValueError:
         self.writeSExpr(['malformed-message', data])
Пример #2
0
 def stringReceived(self, string):
   expr = str2sexpr(string)
   for command in expr:
     result = self.app.run(command)
     if result:
       self.sendString(sexpr2str(result))
Пример #3
0
 def stringReceived(self, string):
     expr = str2sexpr(string)
     for command in expr:
         result = self.app.run(command)
         if result:
             self.sendString(sexpr2str(result))
Пример #4
0
 def _readOut(self, data):
     try:
         self.readSExpr(sexpr.str2sexpr(data))
     except ValueError:
         self.writeSExpr(['malformed-message', data])