예제 #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)