Exemplo n.º 1
0
 def refresh(lctrl):
     adrs = gmDemographicRecord.get_addresses(
         order_by=u'l10n_country, urb, street, number, subunit')
     items = [[
         a['street'],
         gmTools.coalesce(a['notes_street'], u''), a['number'],
         gmTools.coalesce(a['subunit'], u''), a['postcode'], a['urb'],
         gmTools.coalesce(a['suburb'], u''), a['l10n_region'],
         a['l10n_country'],
         gmTools.coalesce(a['notes_subunit'], u'')
     ] for a in adrs]
     lctrl.set_string_items(items)
     lctrl.set_data(adrs)
Exemplo n.º 2
0
	def refresh(lctrl):
		adrs = gmDemographicRecord.get_addresses(order_by = 'l10n_country, urb, street, number, subunit')
		items = [ [
				a['street'],
				gmTools.coalesce(a['notes_street'], ''),
				a['number'],
				gmTools.coalesce(a['subunit'], ''),
				a['postcode'],
				a['urb'],
				gmTools.coalesce(a['suburb'], ''),
				a['l10n_region'],
				a['l10n_country'],
				gmTools.coalesce(a['notes_subunit'], '')
			] for a in adrs
		]
		lctrl.set_string_items(items)
		lctrl.set_data(adrs)