Skip to content
Extraits de code Groupes Projets

Comparer les révisions

Les modifications sont affichées comme si la révision source était fusionnée avec la révision cible. En savoir plus sur la comparaison des révisions.

Source

Sélectionner le projet cible
No results found

Cible

Sélectionner le projet cible
  • la-quadrature-du-net/memopol/memopol
  • lnclt/political_memory
  • arthur/political_memory
  • agrausem/political_memory
  • periode/memopol
  • Anthony/memopol
  • Porkepix/memopol
  • jaster/memopol
  • luxcem/memopol
  • TAlone/memopol
10 résultats
Afficher les modifications
Affichage de
avec 1867 ajouts et 0 suppression
[
{
"fields": {
"total_for": 1,
"description": "",
"reference": "TEST-COM-VOTE",
"title": "LIBE vote on Test Committee Vote",
"dossier": [
"2012/2002(INI)"
],
"kind": "committee-vote",
"datetime": "2012-10-23T16:31:10Z",
"total_against": 1,
"total_abstain": 0
},
"model": "representatives_votes.proposal"
},
{
"fields": {
"representative_name": "",
"position": "abstain",
"proposal": [
"A7-0234/2012 - Charles Goerens - \u00a7 31",
"2012/2002(INI)"
],
"representative": [
"olle-ludvigsson-1948-10-28"
]
},
"model": "representatives_votes.vote",
"pk": 1
},
{
"fields": {
"representative_name": "",
"position": "abstain",
"proposal": [
"A7-0234/2012 - Charles Goerens - \u00a7 31",
"2012/2002(INI)"
],
"representative": [
"hubert-pirker-1948-10-03"
]
},
"model": "representatives_votes.vote",
"pk": 2
},
{
"fields": {
"representative_name": "",
"position": "for",
"proposal": [
"A7-0234/2012 - Charles Goerens - R\u00e9solution",
"2012/2002(INI)"
],
"representative": [
"olle-ludvigsson-1948-10-28"
]
},
"model": "representatives_votes.vote",
"pk": 3
},
{
"fields": {
"representative_name": "",
"position": "for",
"proposal": [
"A7-0234/2012 - Charles Goerens - R\u00e9solution",
"2012/2002(INI)"
],
"representative": [
"hubert-pirker-1948-10-03"
]
},
"model": "representatives_votes.vote",
"pk": 4
},
{
"fields": {
"representative_name": "",
"position": "against",
"proposal": [
"A8-0298/2015 - Jos\u00e9 Manuel Fernandes et G\u00e9rard Deprez - Am 4",
"2015/2132(BUD)"
],
"representative": [
"olle-ludvigsson-1948-10-28"
]
},
"model": "representatives_votes.vote",
"pk": 5
},
{
"fields": {
"representative_name": "",
"position": "against",
"proposal": [
"A8-0298/2015 - Jos\u00e9 Manuel Fernandes et G\u00e9rard Deprez - Am 4",
"2015/2132(BUD)"
],
"representative": [
"hubert-pirker-1948-10-03"
]
},
"model": "representatives_votes.vote",
"pk": 6
},
{
"fields": {
"representative_name": "",
"position": "for",
"proposal": [
"A8-0298/2015 - Jos\u00e9 Manuel Fernandes et G\u00e9rard Deprez - Am 29",
"2015/2132(BUD)"
],
"representative": [
"hubert-pirker-1948-10-03"
]
},
"model": "representatives_votes.vote",
"pk": 7
},
{
"fields": {
"representative_name": "",
"position": "against",
"proposal": [
"A8-0298/2015 - Jos\u00e9 Manuel Fernandes et G\u00e9rard Deprez - Am 29",
"2015/2132(BUD)"
],
"representative": [
"olle-ludvigsson-1948-10-28"
]
},
"model": "representatives_votes.vote",
"pk": 8
},
{
"fields": {
"representative_name": "",
"position": "abstain",
"proposal": [
"A8-0298/2015 - Jos\u00e9 Manuel Fernandes et G\u00e9rard Deprez - Am 31",
"2015/2132(BUD)"
],
"representative": [
"hubert-pirker-1948-10-03"
]
},
"model": "representatives_votes.vote",
"pk": 9
},
{
"fields": {
"representative_name": "",
"position": "against",
"proposal": [
"A8-0298/2015 - Jos\u00e9 Manuel Fernandes et G\u00e9rard Deprez - Am 31",
"2015/2132(BUD)"
],
"representative": [
"olle-ludvigsson-1948-10-28"
]
},
"model": "representatives_votes.vote",
"pk": 10
},
{
"fields": {
"representative_name": "",
"position": "for",
"proposal": [
"A8-0298/2015 - Jos\u00e9 Manuel Fernandes et G\u00e9rard Deprez - Am 30",
"2015/2132(BUD)"
],
"representative": [
"hubert-pirker-1948-10-03"
]
},
"model": "representatives_votes.vote",
"pk": 11
},
{
"fields": {
"representative_name": "",
"position": "for",
"proposal": [
"LIBE vote on Test Committee Vote",
"2012/2002(INI)"
],
"representative": [
"hubert-pirker-1948-10-03"
]
},
"model": "representatives_votes.vote",
"pk": 12
},
{
"fields": {
"representative_name": "",
"position": "against",
"proposal": [
"LIBE vote on Test Committee Vote",
"2012/2002(INI)"
],
"representative": [
"olle-ludvigsson-1948-10-28"
]
},
"model": "representatives_votes.vote",
"pk": 13
}
]
[
{
"Abstain": {
"groups": [
{
"group": "PPE",
"votes": [
{
"ep_id": 96673,
"name": "Ludvigsson",
"userid": 5860
},
{
"ep_id": 2307,
"name": "Pirker",
"userid": 4611
}
]
}
],
"total": "2"
},
"_id": "56617c15ecc52ed712fc7901",
"dossierid": "4f33d5ddb819f2756a000009",
"epref": "2012/2002(INI)",
"eptitle": "Agenda for change: the future of EU development policy",
"issue_type": "\u00a7 31",
"rapporteur": [
{
"name": "Charles Goerens",
"ref": 840
}
],
"report": "A7-0234/2012",
"title": "A7-0234/2012 - Charles Goerens - \u00a7 31",
"ts": "2012-10-23T18:31:10",
"url": "http://www.europarl.europa.eu/RegData/seance_pleniere/proces_verbal/2012/10-23/votes_nominaux/xml/P7_PV(2012)10-23(RCV)_XC.xml",
"voteid": "17393"
},
{
"For": {
"groups": [
{
"group": "PPE",
"votes": [
{
"ep_id": 96673,
"name": "Ludvigsson",
"userid": 5860
}
]
},
{
"group": "PPE",
"votes": [
{
"ep_id": 2307,
"name": "Pirker",
"userid": 4611
}
]
}
],
"total": "2"
},
"_id": "56617c15ecc52ed712fc7902",
"dossierid": "4f33d5ddb819f2756a000009",
"epref": "2012/2002(INI)",
"eptitle": "Agenda for change: the future of EU development policy",
"issue_type": "R\u00e9solution",
"rapporteur": [
{
"name": "Charles Goerens",
"ref": 840
}
],
"report": "A7-0234/2012",
"title": "A7-0234/2012 - Charles Goerens - R\u00e9solution",
"ts": "2012-10-23T18:34:32",
"url": "http://www.europarl.europa.eu/RegData/seance_pleniere/proces_verbal/2012/10-23/votes_nominaux/xml/P7_PV(2012)10-23(RCV)_XC.xml",
"voteid": "17394"
},
{
"Against": {
"groups": [
{
"group": "PPE",
"votes": [
{
"ep_id": 96673,
"name": "Ludvigsson",
"userid": 5860
}
]
},
{
"group": "PPE",
"votes": [
{
"ep_id": 2307,
"name": "Pirker",
"userid": 4611
}
]
}
],
"total": "2"
},
"_id": "56617a11ecc52ed712fc6b14",
"dossierid": "55a4580ed1d1c57c1e000002",
"epref": "2015/2132(BUD)",
"eptitle": "2016 general budget: all sections",
"issue_type": "Am 4",
"rapporteur": [
{
"name": "Jos\u00e9 Manuel Fernandes",
"ref": 96899
},
{
"name": " G\u00e9rard Deprez",
"ref": 1473
}
],
"report": "A8-0298/2015",
"title": "A8-0298/2015 - Jos\u00e9 Manuel Fernandes et G\u00e9rard Deprez - Am 4",
"ts": "2015-10-28T12:59:35",
"url": "http://www.europarl.europa.eu/RegData/seance_pleniere/proces_verbal/2015/10-28/votes_nominaux/xml/P8_PV(2015)10-28(RCV)_XC.xml",
"voteid": "59145"
},
{
"For": {
"groups": [
{
"group": "PPE",
"votes": [
{
"ep_id": 2307,
"name": "Pirker",
"userid": 4611
}
]
}
],
"total": "1"
},
"Against": {
"groups": [
{
"group": "PPE",
"votes": [
{
"ep_id": 96673,
"name": "Ludvigsson",
"userid": 5860
}
]
}
],
"total": "1"
},
"_id": "56617a11ecc52ed712fc6b15",
"dossierid": "55a4580ed1d1c57c1e000002",
"epref": "2015/2132(BUD)",
"eptitle": "2016 general budget: all sections",
"issue_type": "Am 29",
"rapporteur": [
{
"name": "Jos\u00e9 Manuel Fernandes",
"ref": 96899
},
{
"name": " G\u00e9rard Deprez",
"ref": 1473
}
],
"report": "A8-0298/2015",
"title": "A8-0298/2015 - Jos\u00e9 Manuel Fernandes et G\u00e9rard Deprez - Am 29",
"ts": "2015-10-28T13:00:12",
"url": "http://www.europarl.europa.eu/RegData/seance_pleniere/proces_verbal/2015/10-28/votes_nominaux/xml/P8_PV(2015)10-28(RCV)_XC.xml",
"voteid": "59146"
},
{
"Abstain": {
"groups": [
{
"group": "PPE",
"votes": [
{
"ep_id": 2307,
"name": "Pirker",
"userid": 4611
}
]
}
],
"total": "1"
},
"Against": {
"groups": [
{
"group": "PPE",
"votes": [
{
"ep_id": 96673,
"name": "Ludvigsson",
"userid": 5860
}
]
}
],
"total": "1"
},
"_id": "56617a11ecc52ed712fc6b16",
"dossierid": "55a4580ed1d1c57c1e000002",
"epref": "2015/2132(BUD)",
"eptitle": "2016 general budget: all sections",
"issue_type": "Am 31",
"rapporteur": [
{
"name": "Jos\u00e9 Manuel Fernandes",
"ref": 96899
},
{
"name": " G\u00e9rard Deprez",
"ref": 1473
}
],
"report": "A8-0298/2015",
"title": "A8-0298/2015 - Jos\u00e9 Manuel Fernandes et G\u00e9rard Deprez - Am 31",
"ts": "2015-10-28T13:00:42",
"url": "http://www.europarl.europa.eu/RegData/seance_pleniere/proces_verbal/2015/10-28/votes_nominaux/xml/P8_PV(2015)10-28(RCV)_XC.xml",
"voteid": "59147"
},
{
"For": {
"groups": [
{
"group": "PPED",
"votes": [
{
"ep_id": 12323196673,
"name": "FAILLLLL",
"userid": 5860
},
{
"name": "FAILLLLL",
"userid": 5860
}
]
},
{
"group": "PPE",
"votes": [
{
"ep_id": 2307,
"name": "Pirker",
"userid": 4611
}
]
}
],
"total": "2"
},
"_id": "56617a11ecc52ed712fc6b17",
"dossierid": "55a4580ed1d1c57c1e000002",
"epref": "2015/2132(BUD)",
"eptitle": "2016 general budget: all sections",
"issue_type": "Am 30",
"rapporteur": [
{
"name": "Jos\u00e9 Manuel Fernandes",
"ref": 96899
},
{
"name": " G\u00e9rard Deprez",
"ref": 1473
}
],
"report": "A8-0298/2015",
"title": "A8-0298/2015 - Jos\u00e9 Manuel Fernandes et G\u00e9rard Deprez - Am 30",
"ts": "2015-10-28T13:01:09",
"url": "http://www.europarl.europa.eu/RegData/seance_pleniere/proces_verbal/2015/10-28/votes_nominaux/xml/P8_PV(2015)10-28(RCV)_XC.xml",
"voteid": "59151"
},
{
"url": "http://www.europarl.europa.eu/sides/getDoc.do?type=REPORT&mode=XML&reference=TEST-COM-VOTE&language=EN",
"doc": "Test Committee Vote",
"+": {
"groups": [
{
"group": "PPE",
"votes": [
{
"ep_id": 2307,
"name": "Pirker"
}
]
}
],
"total": "1"
},
"ep_ref": "2012/2002(INI)",
"-": {
"groups": [
{
"group": "PPE",
"votes": [
{
"ep_id": 96673,
"name": "Ludvigsson"
}
]
}
],
"total": "1"
},
"ts": "2012-10-23T18:31:10",
"0": {
"total": 0,
"groups": []
},
"committee": "LIBE",
"_id": "56617c15edd52ed712fc7901"
}
]
[
{
"fields": {
"updated": "2015-12-13T01:10:09.683Z",
"reference": "2012/2002(INI)",
"title": "Agenda for change: the future of EU development policy",
"text": "",
"created": "2015-12-13T01:10:09.683Z",
"link": "http://www.europarl.europa.eu/oeil/popups/ficheprocedure.do?reference=2012/2002(INI)"
},
"model": "representatives_votes.dossier",
"pk": 64
},
{
"fields": {
"updated": "2015-12-13T01:10:09.698Z",
"reference": "2015/2132(BUD)",
"title": "2016 general budget: all sections",
"text": "",
"created": "2015-12-13T01:10:09.698Z"
},
"model": "representatives_votes.dossier",
"pk": 65
},
{
"fields": {
"updated": "2015-12-12T23:06:32.305Z",
"last_name": "PIRKER",
"photo": "http://www.europarl.europa.eu/mepphoto/2307.jpg",
"created": "2015-12-12T22:56:14.401Z",
"gender": 2,
"first_name": "Hubert",
"cv": "Transport and security spokesman, \u00d6VP Delegation, European Parliament;\nsecurity spokesman, \u00d6VP Delegation, European Parliament (2006-2009); security spokesman (coordinator), EPP Group (1999-2004); Deputy Head of \u00d6VP Delegation, European Parliament (1996-2004);",
"active": false,
"birth_place": "Gries",
"full_name": "Hubert PIRKER",
"birth_date": "1948-10-03",
"slug": "hubert-pirker"
},
"model": "representatives.representative",
"pk": 1
},
{
"fields": {
"updated": "2015-12-12T23:06:32.656Z",
"last_name": "LUDVIGSSON",
"photo": "http://www.europarl.europa.eu/mepphoto/96673.jpg",
"created": "2015-12-12T22:56:14.757Z",
"gender": 2,
"first_name": "Olle",
"cv": "",
"active": true,
"birth_place": "H\u00e4ls\u00f6",
"full_name": "Olle LUDVIGSSON",
"birth_date": "1948-10-28",
"slug": "olle-ludvigsson"
},
"model": "representatives.representative",
"pk": 2
}
]
[
{
"fields": {
"updated": "2015-12-27T11:51:14.770Z",
"reference": "2012/2002(INI)",
"title": "Agenda for change: the future of EU development policy",
"text": "",
"created": "2015-12-27T11:51:14.770Z"
},
"model": "representatives_votes.dossier",
"pk": 1
},
{
"fields": {
"updated": "2015-12-27T11:51:14.781Z",
"reference": "2015/2132(BUD)",
"title": "2016 general budget: all sections",
"text": "",
"created": "2015-12-27T11:51:14.781Z"
},
"model": "representatives_votes.dossier",
"pk": 2
},
{
"fields": {
"updated": "2016-07-08T05:20:11.664Z",
"title": "",
"dossier": 1,
"created": "2016-07-08T05:20:11.664Z",
"kind": "procedure-file",
"chamber": 1,
"link": "http://www.europarl.europa.eu/oeil/popups/ficheprocedure.do?reference=2012/2002(INI)"
},
"model": "representatives_votes.document",
"pk": 1
},
{
"fields": {
"updated": "2016-07-08T05:20:11.664Z",
"title": "",
"dossier": 2,
"created": "2016-07-08T05:20:11.664Z",
"kind": "procedure-file",
"chamber": 1,
"link": "http://www.europarl.europa.eu/oeil/popups/ficheprocedure.do?reference=2015/2132(BUD)"
},
"model": "representatives_votes.document",
"pk": 2
},
{
"fields": {
"updated": "2015-12-27T11:51:24.327Z",
"total_for": 0,
"description": "",
"reference": "A7-0234/2012",
"title": "A7-0234/2012 - Charles Goerens - \u00a7 31",
"dossier": 1,
"created": "2015-12-27T11:51:24.327Z",
"kind": "\u00a7 31",
"datetime": "2012-10-23T16:31:10Z",
"total_against": 0,
"total_abstain": 2
},
"model": "representatives_votes.proposal",
"pk": 1
},
{
"fields": {
"updated": "2015-12-27T11:51:24.340Z",
"total_for": 2,
"description": "",
"reference": "A7-0234/2012",
"title": "A7-0234/2012 - Charles Goerens - R\u00e9solution",
"dossier": 1,
"created": "2015-12-27T11:51:24.340Z",
"kind": "R\u00e9solution",
"datetime": "2012-10-23T16:34:32Z",
"total_against": 0,
"total_abstain": 0
},
"model": "representatives_votes.proposal",
"pk": 2
},
{
"fields": {
"updated": "2015-12-27T11:51:24.353Z",
"total_for": 0,
"description": "",
"reference": "A8-0298/2015",
"title": "A8-0298/2015 - Jos\u00e9 Manuel Fernandes et G\u00e9rard Deprez - Am 4",
"dossier": 2,
"created": "2015-12-27T11:51:24.353Z",
"kind": "Am 4",
"datetime": "2015-10-28T11:59:35Z",
"total_against": 2,
"total_abstain": 0
},
"model": "representatives_votes.proposal",
"pk": 3
},
{
"fields": {
"updated": "2015-12-27T11:51:24.367Z",
"total_for": 1,
"description": "",
"reference": "A8-0298/2015",
"title": "A8-0298/2015 - Jos\u00e9 Manuel Fernandes et G\u00e9rard Deprez - Am 29",
"dossier": 2,
"created": "2015-12-27T11:51:24.367Z",
"kind": "Am 29",
"datetime": "2015-10-28T12:00:12Z",
"total_against": 1,
"total_abstain": 0
},
"model": "representatives_votes.proposal",
"pk": 4
},
{
"fields": {
"updated": "2015-12-27T11:51:24.386Z",
"total_for": 0,
"description": "",
"reference": "A8-0298/2015",
"title": "A8-0298/2015 - Jos\u00e9 Manuel Fernandes et G\u00e9rard Deprez - Am 31",
"dossier": 2,
"created": "2015-12-27T11:51:24.386Z",
"kind": "Am 31",
"datetime": "2015-10-28T12:00:42Z",
"total_against": 1,
"total_abstain": 1
},
"model": "representatives_votes.proposal",
"pk": 5
},
{
"fields": {
"updated": "2015-12-27T11:51:24.411Z",
"total_for": 2,
"description": "",
"reference": "A8-0298/2015",
"title": "A8-0298/2015 - Jos\u00e9 Manuel Fernandes et G\u00e9rard Deprez - Am 30",
"dossier": 2,
"created": "2015-12-27T11:51:24.411Z",
"kind": "Am 30",
"datetime": "2015-10-28T12:01:09Z",
"total_against": 0,
"total_abstain": 0
},
"model": "representatives_votes.proposal",
"pk": 6
},
{
"fields": {
"representative_name": "",
"position": "abstain",
"proposal": 1,
"representative": 2
},
"model": "representatives_votes.vote",
"pk": 1
},
{
"fields": {
"representative_name": "",
"position": "abstain",
"proposal": 1,
"representative": 1
},
"model": "representatives_votes.vote",
"pk": 2
},
{
"fields": {
"representative_name": "",
"position": "for",
"proposal": 2,
"representative": 2
},
"model": "representatives_votes.vote",
"pk": 3
},
{
"fields": {
"representative_name": "",
"position": "for",
"proposal": 2,
"representative": 1
},
"model": "representatives_votes.vote",
"pk": 4
},
{
"fields": {
"representative_name": "",
"position": "against",
"proposal": 3,
"representative": 2
},
"model": "representatives_votes.vote",
"pk": 5
},
{
"fields": {
"representative_name": "",
"position": "against",
"proposal": 3,
"representative": 1
},
"model": "representatives_votes.vote",
"pk": 6
},
{
"fields": {
"representative_name": "",
"position": "for",
"proposal": 4,
"representative": 1
},
"model": "representatives_votes.vote",
"pk": 7
},
{
"fields": {
"representative_name": "",
"position": "against",
"proposal": 4,
"representative": 2
},
"model": "representatives_votes.vote",
"pk": 8
},
{
"fields": {
"representative_name": "",
"position": "abstain",
"proposal": 5,
"representative": 1
},
"model": "representatives_votes.vote",
"pk": 9
},
{
"fields": {
"representative_name": "",
"position": "against",
"proposal": 5,
"representative": 2
},
"model": "representatives_votes.vote",
"pk": 10
},
{
"fields": {
"representative_name": "",
"position": "for",
"proposal": 6,
"representative": 1
},
"model": "representatives_votes.vote",
"pk": 11
},
{
"fields": {
"code": "AT",
"name": "Austria"
},
"model": "representatives.country",
"pk": 1043
},
{
"fields": {
"code": "SE",
"name": "Sweden"
},
"model": "representatives.country",
"pk": 1202
},
{
"fields": {
"updated": "2015-12-13T02:07:23.995Z",
"last_name": "PIRKER",
"photo": "http://www.europarl.europa.eu/mepphoto/2307.jpg",
"created": "2015-12-13T02:07:23.995Z",
"gender": 2,
"first_name": "Hubert",
"cv": "Transport and security spokesman, \u00d6VP Delegation, European Parliament;\nsecurity spokesman, \u00d6VP Delegation, European Parliament (2006-2009); security spokesman (coordinator), EPP Group (1999-2004); Deputy Head of \u00d6VP Delegation, European Parliament (1996-2004);",
"active": false,
"birth_place": "Gries",
"full_name": "Hubert PIRKER",
"birth_date": "1948-10-03",
"slug": "hubert-pirker-1948-10-03"
},
"model": "representatives.representative",
"pk": 1
},
{
"fields": {
"updated": "2015-12-13T02:07:24.361Z",
"last_name": "LUDVIGSSON",
"photo": "http://www.europarl.europa.eu/mepphoto/96673.jpg",
"created": "2015-12-13T02:07:24.361Z",
"gender": 2,
"first_name": "Olle",
"cv": "",
"active": true,
"birth_place": "H\u00e4ls\u00f6",
"full_name": "Olle LUDVIGSSON",
"birth_date": "1948-10-28",
"slug": "olle-ludvigsson-1948-10-03"
},
"model": "representatives.representative",
"pk": 2
},
{
"fields": {
"email": "olle.ludvigsson@europarl.europa.eu",
"updated": "2015-12-13T02:07:24.404Z",
"representative": 2,
"kind": "official",
"created": "2015-12-13T02:07:24.404Z"
},
"model": "representatives.email",
"pk": 1
},
{
"fields": {
"url": "http://www.sap.se/olle",
"updated": "2015-12-13T02:07:24.406Z",
"representative": 2,
"kind": "",
"created": "2015-12-13T02:07:24.406Z"
},
"model": "representatives.website",
"pk": 1
},
{
"fields": {
"url": "http://twitter.com/olleludvigsson",
"updated": "2015-12-13T02:07:24.407Z",
"representative": 2,
"kind": "twitter",
"created": "2015-12-13T02:07:24.407Z"
},
"model": "representatives.website",
"pk": 2
},
{
"fields": {
"url": "https://www.facebook.com/olle.ludvigsson",
"updated": "2015-12-13T02:07:24.408Z",
"representative": 2,
"kind": "facebook",
"created": "2015-12-13T02:07:24.408Z"
},
"model": "representatives.website",
"pk": 3
},
{
"fields": {
"url": "http://www.europarl.europa.eu/meps/en/2307/_home.html",
"updated": "2015-12-13T02:07:24.406Z",
"representative": 1,
"kind": "EP",
"created": "2015-12-13T02:07:24.406Z"
},
"model": "representatives.website",
"pk": 4
},
{
"fields": {
"url": "http://www.europarl.europa.eu/meps/en/96673/_home.html",
"updated": "2015-12-13T02:07:24.406Z",
"representative": 2,
"kind": "EP",
"created": "2015-12-13T02:07:24.406Z"
},
"model": "representatives.website",
"pk": 5
},
{
"fields": {
"updated": "2015-12-13T02:07:23.997Z",
"name": "Committee on Employment and Social Affairs",
"created": "2015-12-13T02:07:23.996Z",
"kind": "committee",
"abbreviation": "EMPL"
},
"model": "representatives.group",
"pk": 1
},
{
"fields": {
"updated": "2015-12-13T02:07:24.002Z",
"name": "Delegation for relations with the countries of Southeast Asia and the Association of Southeast Asian Nations (ASEAN)",
"created": "2015-12-13T02:07:24.002Z",
"kind": "delegation",
"abbreviation": ""
},
"model": "representatives.group",
"pk": 2
},
{
"fields": {
"updated": "2015-12-13T02:07:24.006Z",
"name": "Delegation for relations with the Member States of ASEAN, South-east Asia and the Republic of Korea",
"created": "2015-12-13T02:07:24.005Z",
"kind": "delegation",
"abbreviation": ""
},
"model": "representatives.group",
"pk": 3
},
{
"fields": {
"updated": "2015-12-13T02:07:24.009Z",
"name": "Group of the European People's Party (Christian Democrats) and European Democrats",
"created": "2015-12-13T02:07:24.009Z",
"kind": "group",
"abbreviation": "PPE-DE"
},
"model": "representatives.group",
"pk": 4
},
{
"fields": {
"updated": "2015-12-13T02:07:24.013Z",
"name": "Group of the European People's Party (Christian-Democratic Group)",
"created": "2015-12-13T02:07:24.013Z",
"kind": "group",
"abbreviation": "EPP"
},
"model": "representatives.group",
"pk": 5
},
{
"fields": {
"updated": "2015-12-13T02:07:24.017Z",
"name": "Austria",
"created": "2015-12-13T02:07:24.017Z",
"kind": "country",
"abbreviation": "AT"
},
"model": "representatives.group",
"pk": 6
},
{
"fields": {
"updated": "2015-12-13T02:07:24.024Z",
"name": "Conference of Delegation Chairs",
"created": "2015-12-13T02:07:24.024Z",
"kind": "organization",
"abbreviation": ""
},
"model": "representatives.group",
"pk": 7
},
{
"fields": {
"updated": "2015-12-13T02:07:24.362Z",
"name": "Committee on Economic and Monetary Affairs",
"created": "2015-12-13T02:07:24.362Z",
"kind": "committee",
"abbreviation": "ECON"
},
"model": "representatives.group",
"pk": 8
},
{
"fields": {
"updated": "2015-12-13T02:07:24.366Z",
"name": "Committee on Industry, Research and Energy",
"created": "2015-12-13T02:07:24.366Z",
"kind": "committee",
"abbreviation": "ITRE"
},
"model": "representatives.group",
"pk": 9
},
{
"fields": {
"updated": "2015-12-13T02:07:24.372Z",
"name": "Delegation to the EU-Serbia Stabilisation and Association Parliamentary Committee",
"created": "2015-12-13T02:07:24.372Z",
"kind": "delegation",
"abbreviation": ""
},
"model": "representatives.group",
"pk": 10
},
{
"fields": {
"updated": "2015-12-13T02:07:24.375Z",
"name": "Delegation for relations with Bosnia and Herzegovina, and Kosovo",
"created": "2015-12-13T02:07:24.375Z",
"kind": "delegation",
"abbreviation": ""
},
"model": "representatives.group",
"pk": 11
},
{
"fields": {
"updated": "2015-12-13T02:07:24.379Z",
"name": "Delegation for relations with Australia and New Zealand",
"created": "2015-12-13T02:07:24.379Z",
"kind": "delegation",
"abbreviation": ""
},
"model": "representatives.group",
"pk": 12
},
{
"fields": {
"updated": "2015-12-13T02:07:24.383Z",
"name": "Group of the Progressive Alliance of Socialists and Democrats in the European Parliament",
"created": "2015-12-13T02:07:24.383Z",
"kind": "group",
"abbreviation": "SD"
},
"model": "representatives.group",
"pk": 13
},
{
"fields": {
"updated": "2015-12-13T02:07:24.389Z",
"name": "Sweden",
"created": "2015-12-13T02:07:24.389Z",
"kind": "country",
"abbreviation": "SE"
},
"model": "representatives.group",
"pk": 14
},
{
"fields": {
"country": null,
"updated": "2015-12-13T02:07:23.998Z",
"name": "European Parliament",
"created": "2015-12-13T02:07:23.998Z"
},
"model": "representatives.constituency",
"pk": 1
},
{
"fields": {
"country": 1043,
"updated": "2015-12-13T02:07:24.018Z",
"name": "\u00d6sterreichische Volkspartei",
"created": "2015-12-13T02:07:24.018Z"
},
"model": "representatives.constituency",
"pk": 2
},
{
"fields": {
"country": 1202,
"updated": "2015-12-13T02:07:24.390Z",
"name": "Arbetarepartiet- Socialdemokraterna",
"created": "2015-12-13T02:07:24.390Z"
},
"model": "representatives.constituency",
"pk": 3
},
{
"fields": {
"updated": "2015-12-13T02:07:24.001Z",
"group": 1,
"end_date": "1999-07-19",
"created": "2015-12-13T02:07:24.001Z",
"role": "Substitute",
"representative": 1,
"link": "",
"begin_date": "1997-01-16",
"constituency": 1
},
"model": "representatives.mandate",
"pk": 1
},
{
"fields": {
"updated": "2015-12-13T02:07:24.005Z",
"group": 2,
"end_date": "2014-06-30",
"created": "2015-12-13T02:07:24.005Z",
"role": "Member",
"representative": 1,
"link": "",
"begin_date": "2013-10-09",
"constituency": 1
},
"model": "representatives.mandate",
"pk": 2
},
{
"fields": {
"updated": "2015-12-13T02:07:24.008Z",
"group": 3,
"end_date": "1997-01-15",
"created": "2015-12-13T02:07:24.008Z",
"role": "Member",
"representative": 1,
"link": "",
"begin_date": "1996-11-14",
"constituency": 1
},
"model": "representatives.mandate",
"pk": 3
},
{
"fields": {
"updated": "2015-12-13T02:07:24.011Z",
"group": 4,
"end_date": "2004-07-19",
"created": "2015-12-13T02:07:24.011Z",
"role": "Member",
"representative": 1,
"link": "",
"begin_date": "1999-07-20",
"constituency": 1
},
"model": "representatives.mandate",
"pk": 4
},
{
"fields": {
"updated": "2015-12-13T02:07:24.015Z",
"group": 5,
"end_date": "1999-07-19",
"created": "2015-12-13T02:07:24.015Z",
"role": "Member",
"representative": 1,
"link": "",
"begin_date": "1996-11-11",
"constituency": 1
},
"model": "representatives.mandate",
"pk": 5
},
{
"fields": {
"updated": "2015-12-13T02:07:24.020Z",
"group": 6,
"end_date": "2004-07-19",
"created": "2015-12-13T02:07:24.020Z",
"role": "",
"representative": 1,
"link": "",
"begin_date": "1999-07-20",
"constituency": 2
},
"model": "representatives.mandate",
"pk": 6
},
{
"fields": {
"updated": "2015-12-13T02:07:24.023Z",
"group": 6,
"end_date": "1999-07-19",
"created": "2015-12-13T02:07:24.023Z",
"role": "",
"representative": 1,
"link": "",
"begin_date": "1996-11-11",
"constituency": 2
},
"model": "representatives.mandate",
"pk": 7
},
{
"fields": {
"updated": "2015-12-13T02:07:24.026Z",
"group": 7,
"end_date": "2009-07-13",
"created": "2015-12-13T02:07:24.026Z",
"role": "Member",
"representative": 1,
"link": "",
"begin_date": "2006-03-21",
"constituency": 1
},
"model": "representatives.mandate",
"pk": 8
},
{
"fields": {
"updated": "2015-12-13T02:07:24.364Z",
"group": 8,
"end_date": "9999-12-31",
"created": "2015-12-13T02:07:24.364Z",
"role": "Member",
"representative": 2,
"link": "",
"begin_date": "2014-07-01",
"constituency": 1
},
"model": "representatives.mandate",
"pk": 9
},
{
"fields": {
"updated": "2015-12-13T02:07:24.368Z",
"group": 9,
"end_date": "9999-12-31",
"created": "2015-12-13T02:07:24.368Z",
"role": "Substitute",
"representative": 2,
"link": "",
"begin_date": "2014-07-08",
"constituency": 1
},
"model": "representatives.mandate",
"pk": 10
},
{
"fields": {
"updated": "2015-12-13T02:07:24.371Z",
"group": 8,
"end_date": "2012-01-18",
"created": "2015-12-13T02:07:24.371Z",
"role": "Substitute",
"representative": 2,
"link": "",
"begin_date": "2009-07-16",
"constituency": 1
},
"model": "representatives.mandate",
"pk": 11
},
{
"fields": {
"updated": "2015-12-13T02:07:24.374Z",
"group": 10,
"end_date": "9999-12-31",
"created": "2015-12-13T02:07:24.374Z",
"role": "Member",
"representative": 2,
"link": "",
"begin_date": "2014-07-14",
"constituency": 1
},
"model": "representatives.mandate",
"pk": 12
},
{
"fields": {
"updated": "2015-12-13T02:07:24.378Z",
"group": 11,
"end_date": "9999-12-31",
"created": "2015-12-13T02:07:24.378Z",
"role": "Substitute",
"representative": 2,
"link": "",
"begin_date": "2015-05-18",
"constituency": 1
},
"model": "representatives.mandate",
"pk": 13
},
{
"fields": {
"updated": "2015-12-13T02:07:24.382Z",
"group": 12,
"end_date": "2013-01-10",
"created": "2015-12-13T02:07:24.382Z",
"role": "Substitute",
"representative": 2,
"link": "",
"begin_date": "2009-09-17",
"constituency": 1
},
"model": "representatives.mandate",
"pk": 14
},
{
"fields": {
"updated": "2015-12-13T02:07:24.385Z",
"group": 13,
"end_date": "9999-12-31",
"created": "2015-12-13T02:07:24.385Z",
"role": "Member",
"representative": 2,
"link": "",
"begin_date": "2014-07-01",
"constituency": 1
},
"model": "representatives.mandate",
"pk": 15
},
{
"fields": {
"updated": "2015-12-13T02:07:24.388Z",
"group": 13,
"end_date": "2014-06-30",
"created": "2015-12-13T02:07:24.388Z",
"role": "Member",
"representative": 2,
"link": "",
"begin_date": "2009-07-14",
"constituency": 1
},
"model": "representatives.mandate",
"pk": 16
},
{
"fields": {
"updated": "2015-12-13T02:07:24.392Z",
"group": 14,
"end_date": "9999-12-31",
"created": "2015-12-13T02:07:24.392Z",
"role": "",
"representative": 2,
"link": "",
"begin_date": "2014-07-01",
"constituency": 3
},
"model": "representatives.mandate",
"pk": 17
},
{
"fields": {
"updated": "2015-12-13T02:07:24.395Z",
"group": 14,
"end_date": "2014-06-30",
"created": "2015-12-13T02:07:24.395Z",
"role": "",
"representative": 2,
"link": "",
"begin_date": "2009-07-14",
"constituency": 3
},
"model": "representatives.mandate",
"pk": 18
}
]
from representatives.management.remove_command import RemoveCommand
from representatives_votes.models import Dossier
class Command(RemoveCommand):
manager = Dossier.objects
conditions = {'proposals': None}
from representatives.management.remove_command import RemoveCommand
from representatives.models import Representative
class Command(RemoveCommand):
manager = Representative.objects
conditions = {'votes': None}
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('representatives', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Document',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
('title', models.CharField(max_length=1000)),
('kind', models.CharField(default=b'', max_length=255, blank=True)),
('link', models.URLField(max_length=1000)),
('chamber', models.ForeignKey(to='representatives.Chamber')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Dossier',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
('title', models.CharField(max_length=1000)),
('reference', models.CharField(unique=True, max_length=200)),
('text', models.TextField(default=b'', blank=True)),
],
),
migrations.CreateModel(
name='Proposal',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
('title', models.CharField(unique=True, max_length=1000)),
('description', models.TextField(default=b'', blank=True)),
('reference', models.CharField(max_length=200, null=True, blank=True)),
('datetime', models.DateTimeField(db_index=True)),
('kind', models.CharField(default=b'', max_length=200, blank=True)),
('total_abstain', models.IntegerField()),
('total_against', models.IntegerField()),
('total_for', models.IntegerField()),
('dossier', models.ForeignKey(related_name='proposals', to='representatives_votes.Dossier')),
],
options={
'ordering': ['datetime'],
},
),
migrations.CreateModel(
name='Vote',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('representative_name', models.CharField(max_length=200, blank=True)),
('position', models.CharField(max_length=10, choices=[(b'abstain', b'abstain'), (b'for', b'for'), (b'against', b'against')])),
('proposal', models.ForeignKey(related_name='votes', to='representatives_votes.Proposal')),
('representative', models.ForeignKey(related_name='votes', to='representatives.Representative', null=True)),
],
options={
'ordering': ['proposal__datetime'],
},
),
migrations.AddField(
model_name='proposal',
name='representatives',
field=models.ManyToManyField(related_name='proposals', through='representatives_votes.Vote', to='representatives.Representative'),
),
migrations.AlterUniqueTogether(
name='dossier',
unique_together=set([('title', 'reference')]),
),
migrations.AddField(
model_name='document',
name='dossier',
field=models.ForeignKey(related_name='documents', to='representatives_votes.Dossier'),
),
migrations.AlterUniqueTogether(
name='vote',
unique_together=set([('proposal', 'representative')]),
),
migrations.AlterUniqueTogether(
name='proposal',
unique_together=set([('dossier', 'title', 'reference', 'kind', 'total_abstain', 'total_against', 'total_for')]),
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('representatives_votes', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='document',
name='chamber',
field=models.ForeignKey(related_name='documents', to='representatives.Chamber'),
),
]
# coding: utf-8
from django.db import models
from representatives.models import Chamber, Representative, TimeStampedModel
class DossierManager(models.Manager):
def get_by_natural_key(self, reference):
return self.get(reference=reference)
class Dossier(TimeStampedModel):
objects = DossierManager()
title = models.CharField(max_length=1000)
reference = models.CharField(max_length=200, unique=True)
text = models.TextField(blank=True, default='')
class Meta:
unique_together = (('title', 'reference'))
def __unicode__(self):
return unicode(self.title)
def chambers(self):
"""
Return distinct chambers. You probably want to prefetch
documents__chamber before calling that.
"""
# Use sorted() because using order_by will hit the database no matter
# what was prefetched
return set(sorted([d.chamber for d in self.documents.all()]))
def natural_key(self):
return (self.reference,)
class Document(TimeStampedModel):
dossier = models.ForeignKey(Dossier, related_name='documents')
chamber = models.ForeignKey(Chamber, related_name='documents')
title = models.CharField(max_length=1000)
kind = models.CharField(max_length=255, blank=True, default='')
link = models.URLField(max_length=1000)
class ProposalManager(models.Manager):
def get_by_natural_key(self, title, dossier_nk):
dossier = Dossier.objects.get_by_natural_key(dossier_nk)
return self.get(title=title, dossier=dossier)
class Proposal(TimeStampedModel):
objects = ProposalManager()
dossier = models.ForeignKey(Dossier, related_name='proposals')
title = models.CharField(max_length=1000, unique=True)
description = models.TextField(blank=True, default='')
reference = models.CharField(max_length=200, blank=True, null=True)
datetime = models.DateTimeField(db_index=True)
kind = models.CharField(max_length=200, blank=True, default='')
total_abstain = models.IntegerField()
total_against = models.IntegerField()
total_for = models.IntegerField()
representatives = models.ManyToManyField(
Representative, through='Vote', related_name='proposals'
)
class Meta:
ordering = ['datetime']
unique_together = (('dossier', 'title', 'reference',
'kind', 'total_abstain', 'total_against',
'total_for'))
@property
def status(self):
if self.total_for > self.total_against:
return 'adopted'
else:
return 'rejected'
def __unicode__(self):
return unicode(self.title)
def natural_key(self):
return (self.title,) + self.dossier.natural_key()
class Vote(models.Model):
VOTECHOICES = (
('abstain', 'abstain'),
('for', 'for'),
('against', 'against')
)
proposal = models.ForeignKey(Proposal, related_name='votes')
representative = models.ForeignKey(
Representative, related_name='votes', null=True)
# Save representative name in case of we don't find the representative
representative_name = models.CharField(max_length=200, blank=True)
position = models.CharField(max_length=10, choices=VOTECHOICES)
class Meta:
ordering = ['proposal__datetime']
unique_together = (('proposal', 'representative'))
# coding: utf-8
import representatives_votes.models as models
from rest_framework import serializers
class VoteSerializer(serializers.HyperlinkedModelSerializer):
"""
Vote serializer
"""
class Meta:
model = models.Vote
fields = (
'proposal',
'representative',
'position'
)
extra_kwargs = {
'proposal': {'view_name': 'api-proposal-detail'},
'representative': {'view_name': 'api-representative-detail'}
}
class ProposalSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = models.Proposal
fields = (
'id',
'dossier',
'title',
'description',
'reference',
'datetime',
'kind',
'total_abstain',
'total_against',
'total_for',
'url',
)
extra_kwargs = {
'dossier': {'view_name': 'api-dossier-detail'},
'url': {'view_name': 'api-proposal-detail'}
}
class ProposalDetailSerializer(ProposalSerializer):
""" Proposal serializer that includes votes """
votes = VoteSerializer(many=True)
class Meta(ProposalSerializer.Meta):
fields = ProposalSerializer.Meta.fields + ('votes',)
class DocumentSerializer(serializers.HyperlinkedModelSerializer):
""" Base document serializer """
class Meta:
model = models.Document
fields = (
'id',
'dossier',
'chamber',
'kind',
'link'
)
extra_kwargs = {
'dossier': {'view_name': 'api-dossier-detail'},
'chamber': {'view_name': 'api-chamber-detail'}
}
class DossierSerializer(serializers.HyperlinkedModelSerializer):
""" Base dossier serializer """
class Meta:
model = models.Dossier
fields = (
'id',
'url',
'title',
'reference',
'text',
)
extra_kwargs = {
'url': {'view_name': 'api-dossier-detail'}
}
class DossierDetailSerializer(DossierSerializer):
"""
Dossier serializer that includes proposals and votes.
"""
proposals = ProposalSerializer(many=True)
documents = DocumentSerializer(many=True)
class Meta(DossierSerializer.Meta):
fields = DossierSerializer.Meta.fields + ('proposals', 'documents')
{
"id": 1,
"url": "http://testserver/api/dossiers/1/",
"title": "Agenda for change: the future of EU development policy",
"reference": "2012/2002(INI)",
"text": "",
"proposals": [
{
"id": 1,
"dossier": "http://testserver/api/dossiers/1/",
"title": "A7-0234/2012 - Charles Goerens - § 31",
"description": "",
"reference": "A7-0234/2012",
"datetime": "2012-10-23T16:31:10Z",
"kind": "§ 31",
"total_abstain": 2,
"total_against": 0,
"total_for": 0,
"url": "http://testserver/api/proposals/1/"
},
{
"id": 2,
"dossier": "http://testserver/api/dossiers/1/",
"title": "A7-0234/2012 - Charles Goerens - Résolution",
"description": "",
"reference": "A7-0234/2012",
"datetime": "2012-10-23T16:34:32Z",
"kind": "Résolution",
"total_abstain": 0,
"total_against": 0,
"total_for": 2,
"url": "http://testserver/api/proposals/2/"
}
],
"documents": [
{
"id": 1,
"dossier": "http://testserver/api/dossiers/1/",
"chamber": "http://testserver/api/chambers/1/",
"kind": "procedure-file",
"link": "http://www.europarl.europa.eu/oeil/popups/ficheprocedure.do?reference=2012/2002(INI)"
}
]
}
\ No newline at end of file
{
"status_code": 200
}
\ No newline at end of file
[
{
"id": 1,
"url": "http://testserver/api/dossiers/1/",
"title": "Agenda for change: the future of EU development policy",
"reference": "2012/2002(INI)",
"text": ""
},
{
"id": 2,
"url": "http://testserver/api/dossiers/2/",
"title": "2016 general budget: all sections",
"reference": "2015/2132(BUD)",
"text": ""
}
]
\ No newline at end of file
{
"status_code": 200
}
\ No newline at end of file
{
"id": 1,
"dossier": "http://testserver/api/dossiers/1/",
"title": "A7-0234/2012 - Charles Goerens - § 31",
"description": "",
"reference": "A7-0234/2012",
"datetime": "2012-10-23T16:31:10Z",
"kind": "§ 31",
"total_abstain": 2,
"total_against": 0,
"total_for": 0,
"url": "http://testserver/api/proposals/1/",
"votes": [
{
"proposal": "http://testserver/api/proposals/1/",
"representative": "http://testserver/api/representatives/1/",
"position": "abstain"
},
{
"proposal": "http://testserver/api/proposals/1/",
"representative": "http://testserver/api/representatives/2/",
"position": "abstain"
}
]
}
\ No newline at end of file
{
"status_code": 200
}
\ No newline at end of file