#NEWLINE# @ register . filter #NEWLINE# def currencyfmt( num , currency ) : #NEWLINE# #INDENT# if ( num is None ) : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# return _get_format ( ) . currency ( decimal . Decimal ( num ) , currency )