Пример #1
0
 def get(self, datasetID):
     dataset = Dataset.get_by_id(long(datasetID))
     for crawl in Crawl.all().filter('dataset =', dataset).run():
         crawl.delete()
         
     for dump in Dumpfile.all().filter('dataset =', dataset).run():
         dump.delete()
     
     dataset.delete()
     logging.info('Deleted dataset ' + datasetID)
     return webapp2.redirect('/datasets')
Пример #2
0
 def get(self):
     crawls = Crawl.all().order("-queuedFor")
     self.render_response("crawls/crawls_listall.html", **{"crawls": crawls})