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:
* "LOOS Eric (BCS/CBU)" <eric.loos@bics.com> [160506 05:13 +0000]:
Had been looking at COUNTIES_OVERRIDE but it complained about the _ indeed, so decided to just add it. If it is that easy, we can get away with updating the documentation. Updated documentation, pending further discussion.
Pdb-tech mailing list Pdb-tech@lists.peeringdb.com http://lists.peeringdb.com/cgi-bin/mailman/listinfo/pdb-tech