Ignore:
Timestamp:
30 Dec 2014, 12:52:40 (10 years ago)
Author:
Henrik Bettermann
Message:

Move ProductOption? interfaces to productoptions to avoid nasty circular imports.

Use ISO_4217_CURRENCIES.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/vocabularies.py

    r12340 r12343  
    3333from waeup.ikoba.utils.helpers import get_sorted_preferred
    3434from waeup.ikoba.utils.countries import COUNTRIES
     35from waeup.ikoba.payments.currencies import ISO_4217_CURRENCIES
    3536
    3637#: a tuple of tuples (<COUNTRY-NAME>, <ISO-CODE>) with Nigeria first.
     
    203204
    204205    def getTitle(self, context, value):
    205         return "%s @ %s %s" % (value.title, value.fee, value.currency)
     206        currency = ISO_4217_CURRENCIES[value.currency][1]
     207        return "%s @ %s %s" % (value.title, value.fee, currency)
Note: See TracChangeset for help on using the changeset viewer.