Translations: English
Search on Docs:
ActionItem Search:

#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
ScheduledFor N/A
Status Pending
Ticket SAC:
Topic revision: r1 - 22 May 2015, UnknownUser

irc Talk with Devs Now!

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