FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 04-02-2010, 08:51 AM
Fladischer Michael
 
Default Bug#576262: ITP: django-countries -- Provides fixtures, models and flags for countries by ISO 3166-1 alpha-2 code

Package: wnpp
Severity: wishlist
Owner: Fladischer Michael <FladischerMichael@fladi.at>
Owner: Fladischer Michael <FladischerMichael@fladi.at>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* Package name : django-countries
Version : 1.0.2
Upstream Author : Chris Beaven <smileychris@gmail.com>
* URL : http://pypi.python.org/pypi/django-countries/
* License : MIT
Programming Lang: Python
Description : Provides fixtures, models and flags for countries by ISO 3166-1 alpha-2 code

A Django application which provides all ISO 3166-1 countries as choices for
use with forms, and a country field for models.
Also includes a small template filter for getting country flags by ISO 3166-1
alpha-2 country code.
247 flag icons from FamFamFam are included in GIF format.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAku1sB8ACgkQeJ3z1zFMUGaKIwCdGg1ViY0r8S Eu5iN2zg4iweqF
ui8An1V20CAGM7TmK5aNIHuqqu6OhVPq
=gqkn
-----END PGP SIGNATURE-----



--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100402085145.12380.83855.reportbug@fladi-uni.broker.freenet6.net">http://lists.debian.org/20100402085145.12380.83855.reportbug@fladi-uni.broker.freenet6.net
 
Old 04-02-2010, 10:11 AM
Paul Wise
 
Default Bug#576262: ITP: django-countries -- Provides fixtures, models and flags for countries by ISO 3166-1 alpha-2 code

On Fri, 2010-04-02 at 12:03 +0200, Michael Fladischer wrote:

> Wouldn't it be even better if django-countries build-depends on
> iso-codes and generate it's list of codes from the XML sources?

I suppose so, unless there are some differences. IIRC iso-codes includes
lots of translations and django-countries seems to allow for
translations to the country names.

Runtime loading of the iso-codes stuff would be better than
build-depends though.

> As for the icons I'll take a look on how to use them (and possibly the
> PNG variant too) directly from the famfamfam-flag-* package.

Great, please do push the removal & dependency upstream too.

--
bye,
pabs

http://wiki.debian.org/PaulWise
 
Old 04-02-2010, 11:07 AM
Tobias Quathamer
 
Default Bug#576262: ITP: django-countries -- Provides fixtures, models and flags for countries by ISO 3166-1 alpha-2 code

Am Freitag, den 02.04.2010, 18:11 +0800 schrieb Paul Wise:
> On Fri, 2010-04-02 at 12:03 +0200, Michael Fladischer wrote:
> > Wouldn't it be even better if django-countries build-depends on
> > iso-codes and generate it's list of codes from the XML sources?
>
> I suppose so, unless there are some differences. IIRC iso-codes includes
> lots of translations and django-countries seems to allow for
> translations to the country names.

Translations are a major part of iso-codes. We constantly receive
updates and release a new version every four weeks.

> Runtime loading of the iso-codes stuff would be better than
> build-depends though.

You might want to take a look at the package isoquery, which provides a
command line program to generate various lists of the XML data. That
might be easier for your program to parse.

Regards,
Tobias

--
Tobias Quathamer | The following statement is not true.
Hamburg, Germany | The previous statement is true.
 
Old 04-02-2010, 04:27 PM
Christian PERRIER
 
Default Bug#576262: ITP: django-countries -- Provides fixtures, models and flags for countries by ISO 3166-1 alpha-2 code

Quoting Paul Wise (pabs@debian.org):

> Looking at the upstream code, it downloads a file off the ISO website
> and converts that to python:
>
> http://bitbucket.org/smileychris/django-countries/src/tip/django_countries/bin/regenerate.py
>
> I wonder if the ISO considers that file to be copyrightable and if so,
> what the license is.


This is one of the reasons for which we (iso-codes maintainers) are
maintaining the XML file manually and do not generate it in any way
from the various maintenance agencies websites (there are several
standards that iso-codes deals with and they're not maintained by the
same source in ISO).
 
Old 04-03-2010, 10:09 AM
Fladischer Michael
 
Default Bug#576262: ITP: django-countries -- Provides fixtures, models and flags for countries by ISO 3166-1 alpha-2 code

Hi,

I prepared an upload to mentors.d.n which includes a patch to integrate
django-countries with iso-codes. Thanks for all the great feedback!

http://mentors.debian.net/debian/pool/main/d/django-countries/django-countries_1.0.2-1.dsc

Paul Wise, 2010-04-02 12:11:
> I suppose so, unless there are some differences. IIRC iso-codes includes
> lots of translations and django-countries seems to allow for
> translations to the country names.

The translations from iso-codes are now used automatically according to
the Django locale settings. I think that's really a great benefit for
everyone who is going to use this package.

> Runtime loading of the iso-codes stuff would be better than
> build-depends though.

The internal country list is now populated at runtime by parsing
iso_3166.xml with xml.dom.minidom and it provides the three originally
static lists/dicts.

>> As for the icons I'll take a look on how to use them (and possibly the
>> PNG variant too) directly from the famfamfam-flag-* package.
>
> Great, please do push the removal & dependency upstream too.

I notified upstream about my changes but I'm not sure if they will be
included because they heavily depend on the availability of Debian
packages. My changes will not be useful for people using it on Windows,
Solaris, ...

As I consider myself a poor writer of documentation someone should
eventually take a look at my README.Debian to assure that it's readable
and understandable for the average user. There's lots of room for
improvements I guess.

Kind regards,
Michael


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4BB713C0.7030202@fladi.at">http://lists.debian.org/4BB713C0.7030202@fladi.at
 

Thread Tools




All times are GMT. The time now is 12:17 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org