summaryrefslogtreecommitdiff
path: root/src/py_amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-09 13:25:45 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-09 13:25:45 -0500
commit865c0ff828f88ed1d00eea73a3fc55b3e57d21b3 (patch)
tree5acdfae32811b25fb46271bf349a216bea41fddb /src/py_amount.cc
parent55c7792c9329f97dd19fc5aeca466cb2de4fbf9c (diff)
parent9b396b41220646cf73fcd2a8afebcee06dde2a29 (diff)
downloadfork-ledger-865c0ff828f88ed1d00eea73a3fc55b3e57d21b3.tar.gz
fork-ledger-865c0ff828f88ed1d00eea73a3fc55b3e57d21b3.tar.bz2
fork-ledger-865c0ff828f88ed1d00eea73a3fc55b3e57d21b3.zip
Merge branch 'next'
Diffstat (limited to 'src/py_amount.cc')
-rw-r--r--src/py_amount.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/py_amount.cc b/src/py_amount.cc
index 937ad484..83f5dd29 100644
--- a/src/py_amount.cc
+++ b/src/py_amount.cc
@@ -285,11 +285,16 @@ internal precision."))
.def("valid", &amount_t::valid)
;
- enum_< amount_t::parse_flags_enum_t >("AmountParse")
- .value("DEFAULT", amount_t::PARSE_DEFAULT)
- .value("NO_MIGRATE", amount_t::PARSE_NO_MIGRATE)
- .value("NO_REDUCE", amount_t::PARSE_NO_REDUCE)
- .value("SOFT_FAIL", amount_t::PARSE_SOFT_FAIL)
+ enum_< parse_flags_enum_t >("ParseFlags")
+ .value("Default", PARSE_DEFAULT)
+ .value("Partial", PARSE_PARTIAL)
+ .value("Single", PARSE_SINGLE)
+ .value("NoMigrate", PARSE_NO_MIGRATE)
+ .value("NoReduce", PARSE_NO_REDUCE)
+ .value("NoAssign", PARSE_NO_ASSIGN)
+ .value("NoDates", PARSE_NO_DATES)
+ .value("OpContext", PARSE_OP_CONTEXT)
+ .value("SoftFail", PARSE_SOFT_FAIL)
;
register_optional_to_python<amount_t>();