Exemple #1
0
 def run(self):
     session = Session()
     entries = LookupUEs.lookup_entries(session, self.search_word, self.limit, self.offset)
     # print unicode(entries)
     unicode(entries)
     if self.callback is not None:
         self.callback(entries)
     session.close()
     print 'finished searching:', self.search_word
     self.emit(SIGNAL("searchFinished"), entries)
Exemple #2
0
def _lookup_ues_by_entry(search_word, limit, offset, callback):
    session = Session()
    ues = LookupUEs.lookup_ues_by_entry(session, search_word, limit, offset)
    # print unicode(ues)
    unicode(ues)
    if callback is not None:
        callback(ues)
    session.close()
    print 'finished searching:', search_word
    return ues