projects
/
joel
/
kofoto.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeb6701
)
Added missing __hash__ methods in _Object and Category.
author
Joel Rosdahl
<joel@rosdahl.net>
Mon, 12 Jul 2004 22:19:03 +0000
(22:19 +0000)
committer
Joel Rosdahl
<joel@rosdahl.net>
Mon, 12 Jul 2004 22:19:03 +0000
(22:19 +0000)
src/lib/kofoto/shelf.py
patch
|
blob
|
history
diff --git
a/src/lib/kofoto/shelf.py
b/src/lib/kofoto/shelf.py
index
9fdd742
..
794420e
100644
(file)
--- a/
src/lib/kofoto/shelf.py
+++ b/
src/lib/kofoto/shelf.py
@@
-1459,6
+1459,10
@@
class Category:
return not obj == self
+ def __hash__(self):
+ return self.getId()
+
+
class _Object:
##############################
# Public methods.
@@
-1646,6
+1650,10
@@
class _Object:
return not obj == self
+ def __hash__(self):
+ return self.getId()
+
+
class Album(_Object):
"""Base class of Kofoto albums."""