示例#1
0
def resolve_screenshot(request, productionlink_id, archive_member_id):
	production_link = ProductionLink.objects.get(id=productionlink_id)
	archive_member = ArchiveMember.objects.get(id=archive_member_id)

	if request.POST:
		production_link.file_for_screenshot = archive_member.filename
		production_link.is_unresolved_for_screenshotting = False
		production_link.save()
		create_screenshot_from_production_link.delay(productionlink_id)
	return HttpResponse('OK', mimetype='text/plain')
示例#2
0
def resolve_screenshot(request, productionlink_id, archive_member_id):
    production_link = ProductionLink.objects.get(id=productionlink_id)
    archive_member = ArchiveMember.objects.get(id=archive_member_id)

    if request.POST:
        production_link.file_for_screenshot = archive_member.filename
        production_link.is_unresolved_for_screenshotting = False
        production_link.save()
        create_screenshot_from_production_link.delay(productionlink_id)
    return HttpResponse('OK', mimetype='text/plain')
示例#3
0
 def handle(self, *args, **kwargs):
     for prod_link in find_screenshottable_graphics():
         print("prod %s: download from %s" %
               (prod_link.production_id, prod_link.download_url))
         create_screenshot_from_production_link.delay(prod_link.id)
示例#4
0
	def handle_noargs(self, **options):
		for prod_link in find_screenshottable_graphics():
			print "prod %s: download from %s" % (prod_link.production_id, prod_link.download_url)
			create_screenshot_from_production_link.delay(prod_link.id)
示例#5
0
 def handle_noargs(self, **options):
     for prod_link in find_zipped_screenshottable_graphics():
         print "prod %s: download from %s" % (prod_link.production_id,
                                              prod_link.download_url)
         create_screenshot_from_production_link.delay(prod_link.id)