Exemplo n.º 1
0
 def doWork(self, worker):
     response = http.openPage(worker.getConnection(), self.__page,
                              self.__lastModified)
     if response.willClose():
         worker.closeConnection()
     self.__callback(response.getData(), response.getLastModified(),
                     response.getExpires())
 def doWork(self, worker):
     response = http.openPage(worker.getConnection(), self.__page, self.__lastModified)
     if response.willClose():
         worker.closeConnection()
     self.__callback(response.getData(), response.getLastModified(), response.getExpires())