From 1df64c2609abe37f77b90d30467d3fc243424325 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Mon, 13 Sep 2010 18:55:20 +0000 Subject: [PATCH] 4192: [NarWeb] media is out of order in Places svn: r15892 --- src/plugins/webreport/NarrativeWeb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index b0751efb4..7e5d3549d 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -40,6 +40,7 @@ import gc import os import sys import re +import copy try: from hashlib import md5 except ImportError: @@ -1473,7 +1474,7 @@ class BasePage(object): for mediaref in photolist: photolist_handles[mediaref.get_reference_handle()] = mediaref photolist_ordered = [] - for photoref in object.get_media_list(): + for photoref in copy.copy(object.get_media_list()): if photoref.ref in photolist_handles: photo = photolist_handles[photoref.ref] photolist_ordered.append(photo)