コード例 #1
0
ファイル: easy_post.py プロジェクト: udbhav/kishore
    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)