4192: [NarWeb] media is out of order in Places
svn: r15893
This commit is contained in:
parent
20ef0fb0f7
commit
e03e4bbf5c
@ -45,6 +45,7 @@ import gc
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
|
import copy
|
||||||
try:
|
try:
|
||||||
from hashlib import md5
|
from hashlib import md5
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -1493,7 +1494,7 @@ class BasePage(object):
|
|||||||
for mediaref in photolist:
|
for mediaref in photolist:
|
||||||
photolist_handles[mediaref.get_reference_handle()] = mediaref
|
photolist_handles[mediaref.get_reference_handle()] = mediaref
|
||||||
photolist_ordered = []
|
photolist_ordered = []
|
||||||
for photoref in object.get_media_list():
|
for photoref in copy.copy(object.get_media_list()):
|
||||||
if photoref.ref in photolist_handles:
|
if photoref.ref in photolist_handles:
|
||||||
photo = photolist_handles[photoref.ref]
|
photo = photolist_handles[photoref.ref]
|
||||||
photolist_ordered.append(photo)
|
photolist_ordered.append(photo)
|
||||||
|
Loading…
Reference in New Issue
Block a user