示例#1
0
    def get_rate_choices(self, rates):
        choices = []

        for r in rates:
            description = EASYPOST_SERVICES.get(r['service'], None)
            if description:
                choices.append([r['id'], "%s %s" % (kishore_currency(r['rate']), description)])

        return choices
示例#2
0
文件: store.py 项目: udbhav/kishore
 def formatted_price(self):
     return kishore_currency(self.price)