Bug#3819: Fixed the place detail missing because if place.main_loc in dump_places() was indented one too far.

svn: r15110
This commit is contained in:
Rob G. Healey 2010-04-14 05:48:14 +00:00
parent e231990b74
commit bee3835ab6

View File

@ -1709,7 +1709,9 @@ class BasePage(object):
return hyper return hyper
def dump_place(self, place, table, gid): def dump_place(self, place, table, gid):
""" dump a place from the database """ """
dump a place information from the database
"""
if not self.noid and gid: if not self.noid and gid:
trow = Html("tr") + ( trow = Html("tr") + (
@ -1740,7 +1742,7 @@ class BasePage(object):
) )
table += trow table += trow
# return place table to its callers # return place table to its caller
return table return table
def dump_residence(self, has_res): def dump_residence(self, has_res):
@ -2232,16 +2234,19 @@ class PlaceListPage(BasePage):
class PlacePage(BasePage): class PlacePage(BasePage):
def __init__(self, report, title, place_handle, src_list, place_list): def __init__(self, report, title, place_handle, src_list, place_list):
""" creates the individual place pages """ """
creates the individual place pages
"""
self.bibli = Bibliography() self.bibli = Bibliography()
db = report.database db = report.database
place = db.get_place_from_handle(place_handle) place = report.database.get_place_from_handle(place_handle)
BasePage.__init__(self, report, title, place.gramps_id) BasePage.__init__(self, report, title, place.gramps_id)
of = self.report.create_file(place.get_handle(), "plc") of = self.report.create_file(place_handle, "plc")
self.up = True self.up = True
self.page_title = ReportUtils.place_name(db, place_handle) self.page_title = ReportUtils.place_name(report.database, place_handle)
placepage, body = self.write_header(_("Places"), _KEYPLACE) placepage, body = self.write_header(_("Places"), _KEYPLACE)
# begin PlaceDetail Division # begin PlaceDetail Division