#903: need a consistent way of retrieving city/state/country from profiles

Type: FeatureItem Feature: SocialNetwork Tags: ecosol, colivre
ScheduledFor: N/A Assigned to:   Sites:  
Priority: 10 Status: Pending  

  • There are free-text country/state/city fields that can be activated in person and enterprise
  • profiles in general have a region relationship with Region. Normally this region is a city, then we can get city/state/country from it. In FBES system there is a filled database for cities, states and countries (at least the Brazilian ones), but not on other installations.

The handling of city/state/country is a complete mess throughout noosfero. We need to have a consistent way to retrieve the names of city, state and country for a given profile, even if we have different ways of entering them (either by free-text fields or by querying the associated region).

profile.city_name must return the name of the city regardless wheter I have a region_id or have the city field filled. The same for state_name and country_name. All the places where this information is read should use city_name instead of city, state_name instead of state, and country_name instead of country.

-- AntonioTerceiro -- 06 Jan 2009

0.13 includes a temporary workaround: location method in Profile is smart enough to do that.

-- AntonioTerceiro - 06 Jan 2009
Add comment
You need to login to be able to comment.
 

ActionItemForm edit

Title need a consistent way of retrieving city/state/country from profiles
ActionItemType FeatureItem
Priority High
Tags ecosol, colivre
Feature SocialNetwork
ResponsibleDevelopers
ScheduledFor N/A
AffectsVersion
Status Pending
Ticket SAC:
Topic revision: r4 - 23 Jan 2011, JoenioCosta

irc Talk with Devs Now!

%IF{"$'WIKINAME'!='WikiGuest'" then="

♥ I Care

%DBQUERY{"(topic='^ActionItem[0-9]+') AND whocares=~'WikiGuest' AND Status!='Done' AND Status!='Rejected'" format=" $formfield(Title)" separator="$n---$n" }%
Filter ♥ AIs
"}%

 
Translations: English
Search on Docs:
   
ActionItem Search:

Copyright © 2007-2018 by the Noosfero contributors
Colivre - Cooperativa de Tecnologias Livres