def format_currency(self, n, currency=None, format=None): return as_currency( n, format=format, currency=currency or getattr(self, "default_currency", "USD"), locale=self.request.locale_name, )
def format_currency(request, n, currency="USD", format=None): return as_currency(n, format=format, currency=currency, locale=request.locale_name)
def format_currency(self, n, currency=None, format=None): return as_currency( n, format=format, currency=currency or getattr(self, 'default_currency', 'USD'), locale=self.request.locale_name)