Ignore:
Timestamp:
23 Mar 2012, 03:04:20 (13 years ago)
Author:
uli
Message:

Store countries (with preferred ones first) in kofa utils.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py

    r7917 r7969  
    2727from waeup.kofa.interfaces import MessageFactory as _
    2828from waeup.kofa.smtp import send_mail as send_mail_internally
     29from waeup.kofa.utils.countries import COUNTRIES
     30from waeup.kofa.utils.helpers import get_sorted_preferred
    2931
    3032def send_mail(from_name,from_addr,rcpt_name,rcpt_addr,subject,body,config):
     
    136138        9: 'N/A'
    137139        }
     140
     141    #: a tuple of tuples (<COUNTRY-NAME>, <ISO-CODE>) with Nigeria first.
     142    COUNTRIES = get_sorted_preferred(COUNTRIES, ['NG'])
    138143
    139144    def sendContactForm(self,from_name,from_addr,rcpt_name,rcpt_addr,
Note: See TracChangeset for help on using the changeset viewer.