equal
deleted
inserted
replaced
33 """ |
33 """ |
34 Render the given series of images |
34 Render the given series of images |
35 """ |
35 """ |
36 |
36 |
37 # XXX: handle this thumb-update/html-update stuff better |
37 # XXX: handle this thumb-update/html-update stuff better |
|
38 |
|
39 # render all HTML |
|
40 for image in images : |
|
41 render_image_html(ctx, image) |
|
42 |
38 |
43 |
39 # render the thumbnails concurrently |
44 # render the thumbnails concurrently |
40 for image in ctx.concurrent.execute( |
45 for image in ctx.concurrent.execute( |
41 task(update_image_thumbs, image) |
46 task(update_image_thumbs, image) |
42 |
47 |
46 # XXX: externalize logic |
51 # XXX: externalize logic |
47 if for_update or ctx.config.force_thumb or image.stale() |
52 if for_update or ctx.config.force_thumb or image.stale() |
48 ) : |
53 ) : |
49 # log image path |
54 # log image path |
50 ctx.log_info("%s", image) |
55 ctx.log_info("%s", image) |
51 |
|
52 # then render all HTML |
|
53 for image in images : |
|
54 render_image_html(ctx, image) |
|
55 |
56 |
56 # release large objects that are not needed anymore |
57 # release large objects that are not needed anymore |
57 # XXX: verify that this works |
58 image.cleanup() |
58 del image.img |
|
59 |
59 |
60 def render_folder_html (ctx, folder) : |
60 def render_folder_html (ctx, folder) : |
61 """ |
61 """ |
62 Render the .html output for one folder |
62 Render the .html output for one folder |
63 """ |
63 """ |