{"action":"created","comment":{"url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments/25881472","id":25881472,"diff_hunk":"@@ -2,20 +2,22 @@\n \n from django.conf.urls import patterns, url\n \n+from zds.mp.views import PrivateTopicList, PrivatePostList, PrivateTopicNew, PrivateTopicAddParticipant, \\\n+    PrivateTopicLeaveDetail, PrivateTopicLeaveList, \\\n+    PrivatePostAnswer, PrivatePostEdit\n \n-urlpatterns = patterns('',\n \n-    # Viewing a thread\n-    url(r'^nouveau/$', 'zds.mp.views.new'),\n-    url(r'^editer/$', 'zds.mp.views.edit'),\n-    url(r'^quitter/$', 'zds.mp.views.leave'),\n-    url(r'^ajouter/$', 'zds.mp.views.add_participant'),\n-    url(r'^(?P<topic_pk>\\d+)/(?P<topic_slug>.+)/$', 'zds.mp.views.topic'),\n+urlpatterns = patterns('',\n+    # Topics.\n+    url(r'^$', PrivateTopicList.as_view(), name='mp-list'),\n+    url(r'^quitter/$', PrivateTopicLeaveList.as_view(), name='mp-list-delete'),\n+    url(r'^creer/$', PrivateTopicNew.as_view(), name='mp-new'),\n \n-    # Message-related\n-    url(r'^message/editer/$', 'zds.mp.views.edit_post'),\n-    url(r'^message/nouveau/$', 'zds.mp.views.answer'),\n+    url(r'^(?P<pk>\\d+)/quitter/$', PrivateTopicLeaveDetail.as_view(), name='mp-delete'),\n+    url(r'^(?P<pk>\\d+)/editer/participants/$', PrivateTopicAddParticipant.as_view(), name='mp-edit-participant'),\n \n-    # Home\n-    url(r'^$', 'zds.mp.views.index'),\n+    # Posts.\n+    url(r'^(?P<pk>\\d+)/messages/$', PrivatePostList.as_view(), name='posts-private-list'),","path":"zds/mp/urls.py","position":31,"original_position":31,"commit_id":"39846e0d5048af8b31b0a2d5cd5537f06a8eddf3","original_commit_id":"39846e0d5048af8b31b0a2d5cd5537f06a8eddf3","user":{"login":"GerardPaligot","id":1913901,"avatar_url":"https://avatars.githubusercontent.com/u/1913901?v=3","gravatar_id":"","url":"https://api.github.com/users/GerardPaligot","html_url":"https://github.com/GerardPaligot","followers_url":"https://api.github.com/users/GerardPaligot/followers","following_url":"https://api.github.com/users/GerardPaligot/following{/other_user}","gists_url":"https://api.github.com/users/GerardPaligot/gists{/gist_id}","starred_url":"https://api.github.com/users/GerardPaligot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GerardPaligot/subscriptions","organizations_url":"https://api.github.com/users/GerardPaligot/orgs","repos_url":"https://api.github.com/users/GerardPaligot/repos","events_url":"https://api.github.com/users/GerardPaligot/events{/privacy}","received_events_url":"https://api.github.com/users/GerardPaligot/received_events","type":"User","site_admin":false},"body":"C'est pas un peu sale de mettre l'id et le slug ?","created_at":"2015-03-05T17:12:32Z","updated_at":"2015-03-05T17:12:32Z","html_url":"https://github.com/zestedesavoir/zds-site/pull/2398#discussion_r25881472","pull_request_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2398","_links":{"self":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments/25881472"},"html":{"href":"https://github.com/zestedesavoir/zds-site/pull/2398#discussion_r25881472"},"pull_request":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2398"}}},"pull_request":{"url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2398","id":30512153,"html_url":"https://github.com/zestedesavoir/zds-site/pull/2398","diff_url":"https://github.com/zestedesavoir/zds-site/pull/2398.diff","patch_url":"https://github.com/zestedesavoir/zds-site/pull/2398.patch","issue_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2398","number":2398,"state":"open","locked":false,"title":"Refactorisation des vues du module des MPs","user":{"login":"GerardPaligot","id":1913901,"avatar_url":"https://avatars.githubusercontent.com/u/1913901?v=3","gravatar_id":"","url":"https://api.github.com/users/GerardPaligot","html_url":"https://github.com/GerardPaligot","followers_url":"https://api.github.com/users/GerardPaligot/followers","following_url":"https://api.github.com/users/GerardPaligot/following{/other_user}","gists_url":"https://api.github.com/users/GerardPaligot/gists{/gist_id}","starred_url":"https://api.github.com/users/GerardPaligot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GerardPaligot/subscriptions","organizations_url":"https://api.github.com/users/GerardPaligot/orgs","repos_url":"https://api.github.com/users/GerardPaligot/repos","events_url":"https://api.github.com/users/GerardPaligot/events{/privacy}","received_events_url":"https://api.github.com/users/GerardPaligot/received_events","type":"User","site_admin":false},"body":"| Q                         | R\r\n| ------------------------- | -------------------------------------------\r\n| Correction de bugs ?      | Non\r\n| Nouvelle Fonctionnalité ? | Non\r\n| Tickets (_issues_) concernés         | Pre-ZEP-23\r\n\r\nPassage de toutes les vues à l'utilisation des vues génériques.\r\n\r\nQA : Vérifier que le module des MPs fonctionne toujours correctement. Voici les fonctionnalités :\r\n\r\n- Lister les MPs\r\n- Quitter une liste de MPs\r\n- Créer un MP\r\n- Quitter un MP donné\r\n- Ajouter des participants à un MP\r\n- Afficher la liste messages d'un MP\r\n- Ajouter un message à un MP\r\n- Editer le dernier message d'un MP","created_at":"2015-03-04T22:37:52Z","updated_at":"2015-03-05T17:12:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"679f7b32d54c62ba60ce2b4d681e7695da1f020a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2398/commits","review_comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2398/comments","review_comment_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2398/comments","statuses_url":"https://api.github.com/repos/zestedesavoir/zds-site/statuses/39846e0d5048af8b31b0a2d5cd5537f06a8eddf3","head":{"label":"GerardPaligot:refacto_mp","ref":"refacto_mp","sha":"39846e0d5048af8b31b0a2d5cd5537f06a8eddf3","user":{"login":"GerardPaligot","id":1913901,"avatar_url":"https://avatars.githubusercontent.com/u/1913901?v=3","gravatar_id":"","url":"https://api.github.com/users/GerardPaligot","html_url":"https://github.com/GerardPaligot","followers_url":"https://api.github.com/users/GerardPaligot/followers","following_url":"https://api.github.com/users/GerardPaligot/following{/other_user}","gists_url":"https://api.github.com/users/GerardPaligot/gists{/gist_id}","starred_url":"https://api.github.com/users/GerardPaligot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GerardPaligot/subscriptions","organizations_url":"https://api.github.com/users/GerardPaligot/orgs","repos_url":"https://api.github.com/users/GerardPaligot/repos","events_url":"https://api.github.com/users/GerardPaligot/events{/privacy}","received_events_url":"https://api.github.com/users/GerardPaligot/received_events","type":"User","site_admin":false},"repo":{"id":20162464,"name":"zds-site","full_name":"GerardPaligot/zds-site","owner":{"login":"GerardPaligot","id":1913901,"avatar_url":"https://avatars.githubusercontent.com/u/1913901?v=3","gravatar_id":"","url":"https://api.github.com/users/GerardPaligot","html_url":"https://github.com/GerardPaligot","followers_url":"https://api.github.com/users/GerardPaligot/followers","following_url":"https://api.github.com/users/GerardPaligot/following{/other_user}","gists_url":"https://api.github.com/users/GerardPaligot/gists{/gist_id}","starred_url":"https://api.github.com/users/GerardPaligot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GerardPaligot/subscriptions","organizations_url":"https://api.github.com/users/GerardPaligot/orgs","repos_url":"https://api.github.com/users/GerardPaligot/repos","events_url":"https://api.github.com/users/GerardPaligot/events{/privacy}","received_events_url":"https://api.github.com/users/GerardPaligot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GerardPaligot/zds-site","description":"Dépot ZDS","fork":true,"url":"https://api.github.com/repos/GerardPaligot/zds-site","forks_url":"https://api.github.com/repos/GerardPaligot/zds-site/forks","keys_url":"https://api.github.com/repos/GerardPaligot/zds-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GerardPaligot/zds-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GerardPaligot/zds-site/teams","hooks_url":"https://api.github.com/repos/GerardPaligot/zds-site/hooks","issue_events_url":"https://api.github.com/repos/GerardPaligot/zds-site/issues/events{/number}","events_url":"https://api.github.com/repos/GerardPaligot/zds-site/events","assignees_url":"https://api.github.com/repos/GerardPaligot/zds-site/assignees{/user}","branches_url":"https://api.github.com/repos/GerardPaligot/zds-site/branches{/branch}","tags_url":"https://api.github.com/repos/GerardPaligot/zds-site/tags","blobs_url":"https://api.github.com/repos/GerardPaligot/zds-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GerardPaligot/zds-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GerardPaligot/zds-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/GerardPaligot/zds-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GerardPaligot/zds-site/statuses/{sha}","languages_url":"https://api.github.com/repos/GerardPaligot/zds-site/languages","stargazers_url":"https://api.github.com/repos/GerardPaligot/zds-site/stargazers","contributors_url":"https://api.github.com/repos/GerardPaligot/zds-site/contributors","subscribers_url":"https://api.github.com/repos/GerardPaligot/zds-site/subscribers","subscription_url":"https://api.github.com/repos/GerardPaligot/zds-site/subscription","commits_url":"https://api.github.com/repos/GerardPaligot/zds-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/GerardPaligot/zds-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/GerardPaligot/zds-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/GerardPaligot/zds-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/GerardPaligot/zds-site/contents/{+path}","compare_url":"https://api.github.com/repos/GerardPaligot/zds-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GerardPaligot/zds-site/merges","archive_url":"https://api.github.com/repos/GerardPaligot/zds-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GerardPaligot/zds-site/downloads","issues_url":"https://api.github.com/repos/GerardPaligot/zds-site/issues{/number}","pulls_url":"https://api.github.com/repos/GerardPaligot/zds-site/pulls{/number}","milestones_url":"https://api.github.com/repos/GerardPaligot/zds-site/milestones{/number}","notifications_url":"https://api.github.com/repos/GerardPaligot/zds-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GerardPaligot/zds-site/labels{/name}","releases_url":"https://api.github.com/repos/GerardPaligot/zds-site/releases{/id}","created_at":"2014-05-25T18:43:41Z","updated_at":"2015-03-04T22:33:06Z","pushed_at":"2015-03-04T22:33:05Z","git_url":"git://github.com/GerardPaligot/zds-site.git","ssh_url":"git@github.com:GerardPaligot/zds-site.git","clone_url":"https://github.com/GerardPaligot/zds-site.git","svn_url":"https://github.com/GerardPaligot/zds-site","homepage":null,"size":52013,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"refacto_mp"}},"base":{"label":"zestedesavoir:dev","ref":"dev","sha":"5098d3fcf98147c720e70608d4c5bfa851557ada","user":{"login":"zestedesavoir","id":7406239,"avatar_url":"https://avatars.githubusercontent.com/u/7406239?v=3","gravatar_id":"","url":"https://api.github.com/users/zestedesavoir","html_url":"https://github.com/zestedesavoir","followers_url":"https://api.github.com/users/zestedesavoir/followers","following_url":"https://api.github.com/users/zestedesavoir/following{/other_user}","gists_url":"https://api.github.com/users/zestedesavoir/gists{/gist_id}","starred_url":"https://api.github.com/users/zestedesavoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zestedesavoir/subscriptions","organizations_url":"https://api.github.com/users/zestedesavoir/orgs","repos_url":"https://api.github.com/users/zestedesavoir/repos","events_url":"https://api.github.com/users/zestedesavoir/events{/privacy}","received_events_url":"https://api.github.com/users/zestedesavoir/received_events","type":"Organization","site_admin":false},"repo":{"id":14778920,"name":"zds-site","full_name":"zestedesavoir/zds-site","owner":{"login":"zestedesavoir","id":7406239,"avatar_url":"https://avatars.githubusercontent.com/u/7406239?v=3","gravatar_id":"","url":"https://api.github.com/users/zestedesavoir","html_url":"https://github.com/zestedesavoir","followers_url":"https://api.github.com/users/zestedesavoir/followers","following_url":"https://api.github.com/users/zestedesavoir/following{/other_user}","gists_url":"https://api.github.com/users/zestedesavoir/gists{/gist_id}","starred_url":"https://api.github.com/users/zestedesavoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zestedesavoir/subscriptions","organizations_url":"https://api.github.com/users/zestedesavoir/orgs","repos_url":"https://api.github.com/users/zestedesavoir/repos","events_url":"https://api.github.com/users/zestedesavoir/events{/privacy}","received_events_url":"https://api.github.com/users/zestedesavoir/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zestedesavoir/zds-site","description":"Dépot ZDS","fork":false,"url":"https://api.github.com/repos/zestedesavoir/zds-site","forks_url":"https://api.github.com/repos/zestedesavoir/zds-site/forks","keys_url":"https://api.github.com/repos/zestedesavoir/zds-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zestedesavoir/zds-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zestedesavoir/zds-site/teams","hooks_url":"https://api.github.com/repos/zestedesavoir/zds-site/hooks","issue_events_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/events{/number}","events_url":"https://api.github.com/repos/zestedesavoir/zds-site/events","assignees_url":"https://api.github.com/repos/zestedesavoir/zds-site/assignees{/user}","branches_url":"https://api.github.com/repos/zestedesavoir/zds-site/branches{/branch}","tags_url":"https://api.github.com/repos/zestedesavoir/zds-site/tags","blobs_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zestedesavoir/zds-site/statuses/{sha}","languages_url":"https://api.github.com/repos/zestedesavoir/zds-site/languages","stargazers_url":"https://api.github.com/repos/zestedesavoir/zds-site/stargazers","contributors_url":"https://api.github.com/repos/zestedesavoir/zds-site/contributors","subscribers_url":"https://api.github.com/repos/zestedesavoir/zds-site/subscribers","subscription_url":"https://api.github.com/repos/zestedesavoir/zds-site/subscription","commits_url":"https://api.github.com/repos/zestedesavoir/zds-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/zestedesavoir/zds-site/contents/{+path}","compare_url":"https://api.github.com/repos/zestedesavoir/zds-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zestedesavoir/zds-site/merges","archive_url":"https://api.github.com/repos/zestedesavoir/zds-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zestedesavoir/zds-site/downloads","issues_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues{/number}","pulls_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls{/number}","milestones_url":"https://api.github.com/repos/zestedesavoir/zds-site/milestones{/number}","notifications_url":"https://api.github.com/repos/zestedesavoir/zds-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zestedesavoir/zds-site/labels{/name}","releases_url":"https://api.github.com/repos/zestedesavoir/zds-site/releases{/id}","created_at":"2013-11-28T14:23:48Z","updated_at":"2015-02-28T07:29:23Z","pushed_at":"2015-02-26T22:57:24Z","git_url":"git://github.com/zestedesavoir/zds-site.git","ssh_url":"git@github.com:zestedesavoir/zds-site.git","clone_url":"https://github.com/zestedesavoir/zds-site.git","svn_url":"https://github.com/zestedesavoir/zds-site","homepage":null,"size":132504,"stargazers_count":87,"watchers_count":87,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":79,"mirror_url":null,"open_issues_count":278,"forks":79,"open_issues":278,"watchers":87,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2398"},"html":{"href":"https://github.com/zestedesavoir/zds-site/pull/2398"},"issue":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2398"},"comments":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2398/comments"},"review_comments":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2398/comments"},"review_comment":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2398/commits"},"statuses":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/statuses/39846e0d5048af8b31b0a2d5cd5537f06a8eddf3"}}}}