コード例 #1
0
class OQLQuery(OrigOQLQuery):
    # Fake OQLQuery object because we had to change the OQLQuery object to take
    # dicts instead of strings and I'm too lazy to change all my tests.
    def __init__(self, query):
        qdict = parse_qs(query)
        for key, value in qdict.items():
            if len(value) == 1:
                qdict[key] = value[0]
        self.query = OrigOQLQuery(qdict)

    def execute(self):
        return self.query.execute()
コード例 #2
0
 def __init__(self, query):
     qdict = parse_qs(query)
     for key, value in qdict.items():
         if len(value) == 1:
             qdict[key] = value[0]
     self.query = OrigOQLQuery(qdict)