Dolda2000 GitWeb
/
fulbank.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netbank: Changed login syntax.
[fulbank.git]
/
fulbank
/
currency.py
diff --git
a/fulbank/currency.py
b/fulbank/currency.py
index
547acb9
..
0c5660c
100644
(file)
--- a/
fulbank/currency.py
+++ b/
fulbank/currency.py
@@
-143,3
+143,6
@@
class value(object):
if self.currency != other.currency:
raise ValueError("cannot compare %s with %s" % (self.currency.symbol, other.currency.symbol))
return self.amount >= other.amount
+
+ def __hash__(self):
+ return hash(self.amount) + hash(self.currency)