4808: Latitude and Longitude in the web report

svn: r17820
This commit is contained in:
Michiel Nauta 2011-06-20 21:34:03 +00:00
parent 902fa56b26
commit 2238392330

View File

@ -1948,13 +1948,26 @@ class BasePage(object):
)
tbody += trow
data = place.get_latitude()
if data != "":
trow = Html('tr') + (
Html("td", LATITUDE, class_ = "ColumnAttribute", inline = True),
Html("td", data, class_ = "ColumnValue", inline = True)
)
tbody += trow
data = place.get_longitude()
if data != "":
trow = Html('tr') + (
Html("td", LONGITUDE, class_ = "ColumnAttribute", inline =True),
Html("td", data, class_ = "ColumnValue", inline = True)
)
tbody += trow
if place.main_loc:
ml = place.get_main_location()
if ml and not ml.is_empty():
for (label, data) in [
(LATITUDE, place.lat),
(LONGITUDE, place.long),
(STREET, ml.street),
(LOCALITY, ml.locality),
(CITY, ml.city),