European part vote related code and models extracted from memopol code base.
Votes data of the European Parliament importation (from parltrack) and models extracted from memopol code base.
This contains the models needed to work with Votes, the script to import if from parltrack and also the script to match between MEPs and votes data.
You'll need django-parltrack-votes-data and django-parltrack-meps
For dev, this will look something like this:
virtualenv ve
source ve/bin/activate
git clone git@github.com:Psycojoker/django-parltrack-votes.git
git clone git@github.com:Psycojoker/django-parltrack-meps.git
pip install django
pip install -r django-parltrack-votes-data/requirements.txt
django-admin.py startproject testing
cd testing
ln -s ../django-parltrack-meps/parltrack\_meps .
ln -s ../django-parltrack-votes/parltrack\_votes .
vi testing/settings.py # here, set the database
# and add 'parltrack_votes' 'parltrack_meps'
# to the list of installed apps
python manage.py syncdb
python manage.py update_meps
python manage.py import_ep_votes_data
Run:
python manage.py link_a_proposal_part_votes_to_meps <votes_data id>
To try to link the votes of a proposal part to their respectives meps. WARNING: high chance of failing if the vote is old.
Like memopol: aGPLv3+