bug report #2131, display latitude before longitude

svn: r10681
This commit is contained in:
Stéphane Charette 2008-05-06 06:51:22 +00:00
parent 679f0c68ad
commit 1c2981e203
3 changed files with 9 additions and 9 deletions

View File

@ -71,8 +71,8 @@ class PlaceView(PageView.ListView):
_('County'),
_('State'),
_('Country'),
_('Longitude'),
_('Latitude'),
_('Longitude'),
_('Last Changed'),
_('Street'),
]

View File

@ -67,8 +67,8 @@ class PlaceModel(BaseModel):
self.column_county,
self.column_state,
self.column_country,
self.column_longitude,
self.column_latitude,
self.column_longitude,
self.column_change,
self.column_street,
self.column_handle,
@ -83,8 +83,8 @@ class PlaceModel(BaseModel):
self.column_county,
self.column_state,
self.column_country,
self.column_longitude,
self.column_latitude,
self.column_longitude,
self.column_change,
self.column_street,
self.column_handle,

View File

@ -1057,18 +1057,18 @@ class PlacePage(BasePage):
of.write('\t\t\t\t<td class="ColumnValue">%s</td>\n' % val[1])
of.write('\t\t\t</tr>\n')
if place.long:
of.write('\t\t\t<tr>\n')
of.write('\t\t\t\t<td class="ColumnAttribute">%s</td>\n' % _('Longitude'))
of.write('\t\t\t\t<td class="ColumnValue">%s</td>\n' % place.long)
of.write('\t\t\t</tr>\n')
if place.lat:
of.write('\t\t\t<tr>\n')
of.write('\t\t\t\t<td class="ColumnAttribute">%s</td>\n' % _('Latitude'))
of.write('\t\t\t\t<td class="ColumnValue">%s</td>\n' % place.lat)
of.write('\t\t\t</tr>\n')
if place.long:
of.write('\t\t\t<tr>\n')
of.write('\t\t\t\t<td class="ColumnAttribute">%s</td>\n' % _('Longitude'))
of.write('\t\t\t\t<td class="ColumnValue">%s</td>\n' % place.long)
of.write('\t\t\t</tr>\n')
of.write('\t\t</table>\n')
of.write('\t</div>\n')