Author: mark
Date: 2008-08-12 06:39:35 -0600 (Tue, 12 Aug 2008)
New Revision: 3543

Modified:
   FormEncode/trunk/formencode/addressing.py
Log:
warn if no module for country names (such as pycountry) has been found

Modified: FormEncode/trunk/formencode/addressing.py
===================================================================
--- FormEncode/trunk/formencode/addressing.py   2008-08-12 11:41:30 UTC (rev 
3542)
+++ FormEncode/trunk/formencode/addressing.py   2008-08-12 12:39:35 UTC (rev 
3543)
@@ -54,6 +54,9 @@
 
     def get_country(code):
         return dict(get_countries())[code]
+else:
+    from warnings import warn
+    warn('Please easy_install pycountry or validators handling country names 
will not work.', DeprecationWarning)
 #endif
 
 ############################################################


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FormEncode-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/formencode-cvs

Reply via email to