| 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 |
| 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 |