Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Virgil Dupras committed changeset [31]

Revision 31, committed by Virgil Dupras · July 30th, 2009 @ 04:30 PM

[#45 state:port] Fixed convert_amount() so it takes currency.exponent into account. It was done by removing the optimization that was in place in convert_amount that bypassed the internal value conversion system. Also, the Amount class now stores its float value so that it doesn't have to constantly do the maths every time amount.value is called.

2 changed files

  • E /trunk/py/model/amount.py
  • E /trunk/py/tests/currency_test.py