testpython

Changed 2013-04-28 17:21:44


        while True:
            try:
                key = w.fetch_thumb_job()
            except IndexError, e:
                break
    
            image = w.get_image_info(key)
    
            image['thumb_name'] = "t%d.%s" % ( photoconf['thumb_max'], image['file_name'] )
            image['huge_name'] = "t%d.%s" % ( photoconf['huge_max'], image['file_name'] )
    
            relbase = "img" + sep + image['atag'] + sep + image['itag'] + sep
    
            infile = BASE_DIR + sep + relbase + image['file_name']
            thumb_outfile = BASE_DIR + sep + relbase + image['thumb_name']
            huge_outfile = BASE_DIR + sep + relbase + image['huge_name']