in reply to Modules for countries

It would really come in handy if there were a single module, or a single module collection, that could be used to validate this kind of thing. There have been occasions in the past where, when validating data for integrity, I have been at a loss as to what might be valid and what might be invalid.

A few ideas:

Replies are listed 'Best First'.
Re: Modules for countries
by marvi (Sexton) on Aug 13, 2001 at 22:42 UTC
    It would be nice with an Interface (Java speak) that could be implemented for different countries. Dates, telephone numbers, addresses, holidays, sorting are general things. Postal codes that maps to regions and cities may also be a general thing. But our Swedish "personnummer" (personal number) is not a thing that exists everywhere. So the base class could list the general things and lett every country module add it's own special methods.

    And, as Hanamaki wrote, namespace needs to be worked out.

    Anyone know if a project like this exists for other languages? How about Python?