From f672cdc200418208ad0f449b709cd9a6c3a01df4 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sun, 14 Feb 2010 21:00:54 +0000 Subject: [PATCH] Make reference regions show in website, fix bug with empty places, ... not creating website svn: r14372 --- src/plugins/webreport/NarrativeWeb.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 3a36bce0d..2e97d9006 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -2308,7 +2308,8 @@ class EventListPage(BasePage): table += tbody # separate events by their type and then thier event handles - for (evt_type, datalist) in sort_event_types(db, event_types, event_handle_list): + for (evt_type, datalist) in sort_event_types(db, event_types, + event_handle_list): first_event = True for (date, gid, event_handle) in datalist: @@ -2648,7 +2649,7 @@ class MediaPage(BasePage): if initial_image_path != newpath: scalemsg = Html("p", "(%d x %d)" % (width, height), inline = True) summaryarea += scalemsg - with Html("div", style = 'width: %dpx; height: %dpx' % (new_width, + with Html("div", id="GalleryDisplay", style = 'width: %dpx; height: %dpx' % (new_width, new_height)) as mediadisplay: summaryarea += mediadisplay @@ -6097,7 +6098,7 @@ def alphabet_navigation(menu_set, alphakey): # if no letters or words, return None to its callers if not sorted_alpha_index: - return None, None + return None, [] num_ltrs = len(sorted_alpha_index) num_of_cols = 34 if alphakey is not _ALPHAEVENT else 10