devartis / passbook

Python library to create Apple Passbook (.pkpass) files
http://www.devartis.com/
MIT License
275 stars 110 forks source link

Add CurrencyField #18

Closed thijstriemstra closed 11 years ago

thijstriemstra commented 11 years ago

It would be nice to have a CurrencyField that extends NumberField:

class CurrencyField(NumberField):

def __init__(self, key, value, label = '', currencyCode = ''):
    super(CurrencyField, self).__init__(key, value, label)
    self.currencyCode = currencyCode # ISO 4217 currency code

def json_dict(self):
    return self.__dict__
fara commented 11 years ago

Thanks, check the latest version.

thijstriemstra commented 11 years ago

Thanks. When can we expect a new release with this new functionality? I'd like to be able to pip install this with a version number.

fara commented 11 years ago

We'll create a new release by end of Jan to see if no other issues arise. In the meantime you can pip install the latest version like this:

pip install -e git+https://git@github.com/devartis/passbook@cd9f4c4088a95a1ba8cc3b85ff93078fd885956d#egg=passbook