This ...
# add user defined iso code for Kosovo
COUNTRIES_OVERRIDE={
'XK': _('Kosovo'),
},
... is pretty much how most players handle this. There's also the same issue with "EU" & "AP" (Asia Pacific - used by APNIC) and those sometimes need to be added to COUNTRIES_OVERRIDE.
There's still "SU" and "YU" to be found in the wild; however PDB doesn't need to address this.
Plus ... there's a slight issue with "UK" and "GB"; but I think that's been flushed out of the PDB database (via Andy D, Will H, Kai, Grizz and myself). It's needed when mapping from RIPE ASNs into TLDs. For example http://bgp.he.net/country/GB maps into UK. Damn Brits!
Martin
On May 5, 2016, at 10:32 PM, Matt Griswold <
grizz@20c.com> wrote: