@contextfunction
def currency_print(context, currency=None):
 if (not currency):
  currency = Currency.objects.get(is_default=True)
 return unicode(currency.code)

@ contextfunction def currency_print ( context , currency = None ) : if ( not currency ) : currency = Currency . objects . get ( is_default = True ) return unicode ( currency . code )
just returns the currency symbol as set in sales module settings to a given string .