[Checkins] [zopefoundation/z3c.currency] 849103: Several improvements to the converter and validati...

GitHub noreply at github.com
Fri Aug 16 22:11:36 CEST 2013


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/z3c.currency
  Commit: 849103da7292b9c810154cbe7e621652d5778283
      https://github.com/zopefoundation/z3c.currency/commit/849103da7292b9c810154cbe7e621652d5778283
  Author: Stephan Richter <stephan.richter at gmail.com>
  Date:   2013-08-16 (Fri, 16 Aug 2013)

  Changed paths:
    A .gitignore
    M CHANGES.txt
    M setup.py
    M src/z3c/currency/README.txt
    M src/z3c/currency/converter.py
    M src/z3c/currency/field.py
    M src/z3c/currency/i18n.py
    M src/z3c/currency/interfaces.py
    M src/z3c/currency/tests.py

  Log Message:
  -----------
  Several improvements to the converter and validation.

- Updated Trove classifiers.

- Moved code to GitHub.

- Changed validation to raise custom validation errors, since the upstream
  code looks at the doc string of the exception instead of the first argument.

- Improved converter to

  * Ensure proper precision of decimal after initial parsing.

  * Format the value to the proper precision.

- Changed "precision" field in `ICurrency` interface to be a choice, so that
  UIs generate nicely.

- Cleaned up code a little bit.





More information about the checkins mailing list