diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-08 21:17:23 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-08 21:17:23 -0400 |
commit | e0b108ff3a64ae76d9fa420b35e35f77f30a54e0 (patch) | |
tree | 0e624d7bcb1fab855c8016f43f5c83e9872af352 /tools/sample.py | |
parent | 623c57a623eae8e2e79af7bfe1680e507e5d333c (diff) | |
download | ledger-e0b108ff3a64ae76d9fa420b35e35f77f30a54e0.tar.gz ledger-e0b108ff3a64ae76d9fa420b35e35f77f30a54e0.tar.bz2 ledger-e0b108ff3a64ae76d9fa420b35e35f77f30a54e0.zip |
Attribute lookup on a Value object which is a Scope now searches the scope.
Diffstat (limited to 'tools/sample.py')
-rw-r--r-- | tools/sample.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/sample.py b/tools/sample.py index e32ebbcd..2d226b12 100644 --- a/tools/sample.py +++ b/tools/sample.py @@ -1,7 +1,5 @@ import ledger -def myvalue(incoming): - x = ledger.Amount("$123.12") - print x - print x * 1 - return x * 1 +def get_amount(item): + print "I found an amount:", item.amount() + return 123 |