bug#0005370: Error creating website; photo was not being checked to see if it exists or not.
svn: r18446
This commit is contained in:
parent
c9c05d97a0
commit
09bc6f73f6
@ -1535,13 +1535,14 @@ class BasePage(object):
|
|||||||
|
|
||||||
# begin individualgallery division and section title
|
# begin individualgallery division and section title
|
||||||
with Html("div", class_ = "subsection", id = "indivgallery") as section:
|
with Html("div", class_ = "subsection", id = "indivgallery") as section:
|
||||||
section += Html("h4", _("Media"), inline = True)
|
section += Html("h4", _("Media"), inline =True)
|
||||||
|
|
||||||
displayed = []
|
displayed = []
|
||||||
for mediaref in photolist_ordered:
|
for mediaref in photolist_ordered:
|
||||||
|
|
||||||
photo_handle = mediaref.get_reference_handle()
|
photo_handle = mediaref.get_reference_handle()
|
||||||
photo = self.report.database.get_object_from_handle(photo_handle)
|
photo = self.report.database.get_object_from_handle(photo_handle)
|
||||||
|
if photo:
|
||||||
|
|
||||||
if photo_handle in displayed:
|
if photo_handle in displayed:
|
||||||
continue
|
continue
|
||||||
@ -1587,7 +1588,6 @@ class BasePage(object):
|
|||||||
# add fullclear for proper styling
|
# add fullclear for proper styling
|
||||||
section += fullclear
|
section += fullclear
|
||||||
|
|
||||||
# return indivgallery division to its caller
|
|
||||||
return section
|
return section
|
||||||
|
|
||||||
def display_note_list(self, notelist = None):
|
def display_note_list(self, notelist = None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user