ret = {}
for country in iso3166.countries:
- count = self._count("(&(objectClass=person)(st=%s))" % country.alpha2)
+ count = self._count("(&(objectClass=person)(c=%s))" % country.alpha2)
if count:
ret[country] = count
postal_code = property(get_postal_code, set_postal_code)
- # XXX This should be c
- def get_country_code(self):
+ def get_state(self):
return self._get_string("st")
+ def set_state(self, state):
+ self._set_string("st", state)
+
+ state = property(get_state, set_state)
+
+ def get_country_code(self):
+ return self._get_string("c")
+
def set_country_code(self, country_code):
- self._set_string("st", country_code)
+ self._set_string("c", country_code)
country_code = property(get_country_code, set_country_code)