4192: [NarWeb] media is out of order in Places

svn: r15892
This commit is contained in:
Benny Malengier 2010-09-13 18:55:20 +00:00
parent 9aa00be403
commit 1df64c2609

View File

@ -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)