Removed debugging code in NarrativeWeb. Adjusted elements in MediaListPage.

svn: r13794
This commit is contained in:
Rob G. Healey 2009-12-14 07:04:37 +00:00
parent e72257b3f5
commit 73a8acc7bc
3 changed files with 10 additions and 11 deletions

View File

@ -124,6 +124,7 @@ src/Filters/Rules/MediaObject/Makefile
src/Filters/Rules/Repository/Makefile
src/Filters/Rules/Note/Makefile
src/Filters/SideBar/Makefile
src/gui/widgets/Makefile
src/BasicUtils/Makefile
src/Simple/Makefile
src/GrampsDbUtils/Makefile
@ -146,7 +147,6 @@ src/plugins/tool/Makefile
src/plugins/view/Makefile
src/plugins/webreport/Makefile
src/DateHandler/Makefile
src/widgets/Makefile
src/data/Makefile
src/glade/Makefile
src/images/Makefile

View File

@ -712,19 +712,19 @@ div#EventDetail table.eventlist tbody tr td.ColumnDate {
background-colo: #D8F3D6;
}
#Gallery table.infolist tbody tr td.ColumnRowLabel {
width: 8%;
width: 5%;
padding-bottom: 0;
}
#Gallery table.infolist tbody tr td.ColumnName {
padding: 0;
width: 50%;
background-color: #FFF;
}
#Gallery table.infolist tbody tr td.ColumnName a {
padding:.1em 10px .3em 10px;
display: block;
padding: .2em 10px .4em 10px;
}
#Gallery table.infolist tbody tr td.ColumnDate {
width: 15%;
width: 20%;
}
#Gallery table.infolist tbody tr td.ColumnMime {
width: 20%;

View File

@ -1104,7 +1104,7 @@ class BasePage(object):
self.report.copy_file(Utils.media_path_full(db, obj.get_path()), newpath)
# get media rectangles
_region_items = self.media_rectangles(obj_handle, obj)
_region_items = self.media_ref_ewgions(obj_handle, obj)
if len(_region_items):
with Html("div") as mediadisplay:
@ -1156,7 +1156,7 @@ class BasePage(object):
# no image to return
return None
def media_rectangles(self, handle, media):
def media_ref_ewgions(self, handle, media):
"""
*************************************
@ -1265,7 +1265,7 @@ class BasePage(object):
try:
# get media rectangles
_region_items = self.media_rectangles(photo_handle, photo)
_region_items = self.media_ref_ewgions(photo_handle, photo)
if len(_region_items):
with Html("div") as mediadisplay:
snapshot += mediadisplay
@ -1344,7 +1344,7 @@ class BasePage(object):
try:
# get media rectangles
_region_items = self.media_rectangles(photo_handle, photo)
_region_items = self.media_ref_ewgions(photo_handle, photo)
if len(_region_items):
with Html("div") as mediadisplay:
section += mediadisplay
@ -2589,7 +2589,7 @@ class MediaPage(BasePage):
BasePage.__init__(self, report, title, media.gramps_id)
# get media rectangles
_region_items = self.media_rectangles(handle, media)
_region_items = self.media_ref_ewgions(handle, media)
of = self.report.create_file(handle, "img")
self.up = True
@ -2637,7 +2637,6 @@ class MediaPage(BasePage):
with Html("div", id = "summaryarea") as summaryarea:
mediadetail += summaryarea
if mime_type:
print mime_type
if mime_type.startswith("image/"):
if not target_exists:
with Html("div", id = "MediaDisplay") as mediadisplay: