Пример #1
0
 def runQuery(self, query, qid):
     qm = QueryMessage()
     qm.query = query
     try:
         self.queryClient.run(qm, "localhost", getCallbackPort(), qid)
     except TQueryError as qe:
         raise Exception(qe.message)
Пример #2
0
 def run(self, query):
     qm = QueryMessage()
     qm.query = query
     try:
         self.queryClient.runSimple(qm)
     except TQueryError as qe:
         raise Exception(qe.message)
Пример #3
0
 def runQuery(self, query, qid):
     qm = QueryMessage()
     qm.query = query
     try:
         self.queryClient.run(qm, "localhost", getCallbackPort(), qid)
     except TQueryError as qe:
         raise Exception(qe.message)
Пример #4
0
 def run(self, query):
     qm = QueryMessage()
     qm.query = query
     try:
         self.queryClient.runSimple(qm)
     except TQueryError as qe:
         raise Exception(qe.message)
Пример #5
0
 def getFirstTuple(self, query):
     qm = QueryMessage()
     qm.query = query
     try:
         ttuple = self.queryClient.getFirstTuple(qm)
     except TQueryError as qe:
         raise Exception(qe.message)
     return translate(ttuple)
Пример #6
0
 def getFirstTuple(self, query):
     qm = QueryMessage()
     qm.query = query
     try:
         ttuple = self.queryClient.getFirstTuple(qm)
     except TQueryError as qe:
         raise Exception(qe.message)
     return translate(ttuple)