/[pac]/CMFGeographics/GeographicsTool.py
ViewVC logotype

Diff of /CMFGeographics/GeographicsTool.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by tvon, Sat Oct 11 06:01:46 2003 UTC revision 1.2 by tvon, Sat Oct 11 06:09:21 2003 UTC
# Line 1  Line 1 
1  # $Id$  # $Id$
2  ###############################################################################  ###############################################################################
3  # Copyright 2003 Etria LLP  # Copyright 2003 Etria LLP
4    #
5  ###############################################################################  ###############################################################################
6  from Products.CMFCore.utils import UniqueObject  from Products.CMFCore.utils import UniqueObject
7  from OFS.SimpleItem import SimpleItem  from OFS.SimpleItem import SimpleItem
# Line 29  class GeographicsTool(UniqueObject, Simp Line 30  class GeographicsTool(UniqueObject, Simp
30          for id in  prop_tool.countries.propertyIds():          for id in  prop_tool.countries.propertyIds():
31              for l in  prop_tool.countries.getProperty(id):              for l in  prop_tool.countries.getProperty(id):
32                  if l.split('|')[0] == lang:                  if l.split('|')[0] == lang:
33                      if l.split('|')[1] == name:                      if l.split('|')[1] == name.upper():
34                          return l                          return id
35    
36      ###########################################################################      ###########################################################################
37      # USA State utilities      # USA State utilities

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26