|
From: <sub...@co...> - 2008-08-12 12:39:31
|
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
############################################################
|