Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
Merge and fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
dalepotter committed Feb 5, 2016
2 parents 3360d8e + b00c9aa commit 31f5863
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Requirements
You will need [Redis](http://redis.io), [Postgres](http://postgresql.org), python, pip and develpment libraries (for libpq, libxml2 and libxslt) to run the full setup.
For example, on Ubuntu:

sudo aptitude install postgresql redis-server python-pip libpq-dev libxml2-dev libxslt-dev
sudo aptitude install postgresql redis-server python-pip libpq-dev libxml2-dev libxslt-dev python-dev

Installing for development
--------------------------
Expand Down
10 changes: 10 additions & 0 deletions iati_datastore/iatilib/codelists/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ def __init__(self, cls_, name, value, description):
def __hash__(self):
return hash(self.value)

def __eq__(self, other):
if other is None:
return False
return self.value == other.value

def __ne__(self, other):
if other is None:
return True
return self.value != other.value

def __reduce__(self):
"""Allow unpickling to return the symbol
linked to the DeclEnum class."""
Expand Down

0 comments on commit 31f5863

Please sign in to comment.