{"action":"reopened","number":7,"pull_request":{"url":"https://api.github.com/repos/cosmocode/csv/pulls/7","id":46244565,"html_url":"https://github.com/cosmocode/csv/pull/7","diff_url":"https://github.com/cosmocode/csv/pull/7.diff","patch_url":"https://github.com/cosmocode/csv/pull/7.patch","issue_url":"https://api.github.com/repos/cosmocode/csv/issues/7","number":7,"state":"open","locked":false,"title":"Add support for downloading CSV file","user":{"login":"bzfwunde","id":3204051,"avatar_url":"https://avatars.githubusercontent.com/u/3204051?v=3","gravatar_id":"","url":"https://api.github.com/users/bzfwunde","html_url":"https://github.com/bzfwunde","followers_url":"https://api.github.com/users/bzfwunde/followers","following_url":"https://api.github.com/users/bzfwunde/following{/other_user}","gists_url":"https://api.github.com/users/bzfwunde/gists{/gist_id}","starred_url":"https://api.github.com/users/bzfwunde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzfwunde/subscriptions","organizations_url":"https://api.github.com/users/bzfwunde/orgs","repos_url":"https://api.github.com/users/bzfwunde/repos","events_url":"https://api.github.com/users/bzfwunde/events{/privacy}","received_events_url":"https://api.github.com/users/bzfwunde/received_events","type":"User","site_admin":false},"body":"Extended plugin to provide this, by adding the options:\r\n\r\nimport=<file to display>\r\nexport=:dokuwiki:media:path:where:to:write:mediafile.csv\r\nlinkname=Name of the download link to create\r\n\r\nThus, I changed the syntax to use '|' as delimiter between options\r\nrather than using ' '.  I feel this is \"more dokuwiki\" :).  However,\r\nthis breaks existing dokuwiki pages that use the csv plugin to display\r\na CVS file, which now would have to replace the separating space (' ')\r\nwith '|import='.\r\n\r\nThe idea behind this extension is that I want to maintain a list (in\r\nmy case a member list) in dokuwiki but provide a download link to the\r\ncsv file (also for users with only read access to the page).  This is\r\nnow supported as shown in the following example:\r\n\r\n<csv|export=:media:members.csv|linkname=Download member list>\r\nName,Email\r\n,\r\nPaul,paul@email.com\r\nAndreads,andreas@dokuwiki.org\r\n</csv>\r\n\r\nIt renders the CSV data as a DokuWiki table but adds a CSV download link\r\nwith the title \"Download member list\".\r\n\r\nThis is done in the following way:\r\n\r\nWhen rendering the CSV data, this data is also copied to the export=\r\nfile.  Finally, a link to the just generated file is provided.","created_at":"2015-09-29T07:32:24Z","updated_at":"2015-09-29T18:15:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5ef485bc0236be843ac72e456fc289ad75b2254","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cosmocode/csv/pulls/7/commits","review_comments_url":"https://api.github.com/repos/cosmocode/csv/pulls/7/comments","review_comment_url":"https://api.github.com/repos/cosmocode/csv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cosmocode/csv/issues/7/comments","statuses_url":"https://api.github.com/repos/cosmocode/csv/statuses/da31f0b82381fa8c8a7cf9dc05d7c80a30be6128","head":{"label":"bzfwunde:csv","ref":"csv","sha":"da31f0b82381fa8c8a7cf9dc05d7c80a30be6128","user":{"login":"bzfwunde","id":3204051,"avatar_url":"https://avatars.githubusercontent.com/u/3204051?v=3","gravatar_id":"","url":"https://api.github.com/users/bzfwunde","html_url":"https://github.com/bzfwunde","followers_url":"https://api.github.com/users/bzfwunde/followers","following_url":"https://api.github.com/users/bzfwunde/following{/other_user}","gists_url":"https://api.github.com/users/bzfwunde/gists{/gist_id}","starred_url":"https://api.github.com/users/bzfwunde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzfwunde/subscriptions","organizations_url":"https://api.github.com/users/bzfwunde/orgs","repos_url":"https://api.github.com/users/bzfwunde/repos","events_url":"https://api.github.com/users/bzfwunde/events{/privacy}","received_events_url":"https://api.github.com/users/bzfwunde/received_events","type":"User","site_admin":false},"repo":{"id":43351182,"name":"csv","full_name":"bzfwunde/csv","owner":{"login":"bzfwunde","id":3204051,"avatar_url":"https://avatars.githubusercontent.com/u/3204051?v=3","gravatar_id":"","url":"https://api.github.com/users/bzfwunde","html_url":"https://github.com/bzfwunde","followers_url":"https://api.github.com/users/bzfwunde/followers","following_url":"https://api.github.com/users/bzfwunde/following{/other_user}","gists_url":"https://api.github.com/users/bzfwunde/gists{/gist_id}","starred_url":"https://api.github.com/users/bzfwunde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzfwunde/subscriptions","organizations_url":"https://api.github.com/users/bzfwunde/orgs","repos_url":"https://api.github.com/users/bzfwunde/repos","events_url":"https://api.github.com/users/bzfwunde/events{/privacy}","received_events_url":"https://api.github.com/users/bzfwunde/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bzfwunde/csv","description":"A CSV plugin for DokuWiki","fork":true,"url":"https://api.github.com/repos/bzfwunde/csv","forks_url":"https://api.github.com/repos/bzfwunde/csv/forks","keys_url":"https://api.github.com/repos/bzfwunde/csv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bzfwunde/csv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bzfwunde/csv/teams","hooks_url":"https://api.github.com/repos/bzfwunde/csv/hooks","issue_events_url":"https://api.github.com/repos/bzfwunde/csv/issues/events{/number}","events_url":"https://api.github.com/repos/bzfwunde/csv/events","assignees_url":"https://api.github.com/repos/bzfwunde/csv/assignees{/user}","branches_url":"https://api.github.com/repos/bzfwunde/csv/branches{/branch}","tags_url":"https://api.github.com/repos/bzfwunde/csv/tags","blobs_url":"https://api.github.com/repos/bzfwunde/csv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bzfwunde/csv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bzfwunde/csv/git/refs{/sha}","trees_url":"https://api.github.com/repos/bzfwunde/csv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bzfwunde/csv/statuses/{sha}","languages_url":"https://api.github.com/repos/bzfwunde/csv/languages","stargazers_url":"https://api.github.com/repos/bzfwunde/csv/stargazers","contributors_url":"https://api.github.com/repos/bzfwunde/csv/contributors","subscribers_url":"https://api.github.com/repos/bzfwunde/csv/subscribers","subscription_url":"https://api.github.com/repos/bzfwunde/csv/subscription","commits_url":"https://api.github.com/repos/bzfwunde/csv/commits{/sha}","git_commits_url":"https://api.github.com/repos/bzfwunde/csv/git/commits{/sha}","comments_url":"https://api.github.com/repos/bzfwunde/csv/comments{/number}","issue_comment_url":"https://api.github.com/repos/bzfwunde/csv/issues/comments{/number}","contents_url":"https://api.github.com/repos/bzfwunde/csv/contents/{+path}","compare_url":"https://api.github.com/repos/bzfwunde/csv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bzfwunde/csv/merges","archive_url":"https://api.github.com/repos/bzfwunde/csv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bzfwunde/csv/downloads","issues_url":"https://api.github.com/repos/bzfwunde/csv/issues{/number}","pulls_url":"https://api.github.com/repos/bzfwunde/csv/pulls{/number}","milestones_url":"https://api.github.com/repos/bzfwunde/csv/milestones{/number}","notifications_url":"https://api.github.com/repos/bzfwunde/csv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bzfwunde/csv/labels{/name}","releases_url":"https://api.github.com/repos/bzfwunde/csv/releases{/id}","created_at":"2015-09-29T07:15:40Z","updated_at":"2015-09-29T07:15:40Z","pushed_at":"2015-09-29T18:08:37Z","git_url":"git://github.com/bzfwunde/csv.git","ssh_url":"git@github.com:bzfwunde/csv.git","clone_url":"https://github.com/bzfwunde/csv.git","svn_url":"https://github.com/bzfwunde/csv","homepage":"http://www.dokuwiki.org/plugin:csv","size":107,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cosmocode:master","ref":"master","sha":"484aeb5a78134e822c5c3a18b0cbc42f0f929a23","user":{"login":"cosmocode","id":68587,"avatar_url":"https://avatars.githubusercontent.com/u/68587?v=3","gravatar_id":"","url":"https://api.github.com/users/cosmocode","html_url":"https://github.com/cosmocode","followers_url":"https://api.github.com/users/cosmocode/followers","following_url":"https://api.github.com/users/cosmocode/following{/other_user}","gists_url":"https://api.github.com/users/cosmocode/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmocode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmocode/subscriptions","organizations_url":"https://api.github.com/users/cosmocode/orgs","repos_url":"https://api.github.com/users/cosmocode/repos","events_url":"https://api.github.com/users/cosmocode/events{/privacy}","received_events_url":"https://api.github.com/users/cosmocode/received_events","type":"Organization","site_admin":false},"repo":{"id":201729,"name":"csv","full_name":"cosmocode/csv","owner":{"login":"cosmocode","id":68587,"avatar_url":"https://avatars.githubusercontent.com/u/68587?v=3","gravatar_id":"","url":"https://api.github.com/users/cosmocode","html_url":"https://github.com/cosmocode","followers_url":"https://api.github.com/users/cosmocode/followers","following_url":"https://api.github.com/users/cosmocode/following{/other_user}","gists_url":"https://api.github.com/users/cosmocode/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmocode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmocode/subscriptions","organizations_url":"https://api.github.com/users/cosmocode/orgs","repos_url":"https://api.github.com/users/cosmocode/repos","events_url":"https://api.github.com/users/cosmocode/events{/privacy}","received_events_url":"https://api.github.com/users/cosmocode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cosmocode/csv","description":"A CSV plugin for DokuWiki","fork":false,"url":"https://api.github.com/repos/cosmocode/csv","forks_url":"https://api.github.com/repos/cosmocode/csv/forks","keys_url":"https://api.github.com/repos/cosmocode/csv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cosmocode/csv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cosmocode/csv/teams","hooks_url":"https://api.github.com/repos/cosmocode/csv/hooks","issue_events_url":"https://api.github.com/repos/cosmocode/csv/issues/events{/number}","events_url":"https://api.github.com/repos/cosmocode/csv/events","assignees_url":"https://api.github.com/repos/cosmocode/csv/assignees{/user}","branches_url":"https://api.github.com/repos/cosmocode/csv/branches{/branch}","tags_url":"https://api.github.com/repos/cosmocode/csv/tags","blobs_url":"https://api.github.com/repos/cosmocode/csv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cosmocode/csv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cosmocode/csv/git/refs{/sha}","trees_url":"https://api.github.com/repos/cosmocode/csv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cosmocode/csv/statuses/{sha}","languages_url":"https://api.github.com/repos/cosmocode/csv/languages","stargazers_url":"https://api.github.com/repos/cosmocode/csv/stargazers","contributors_url":"https://api.github.com/repos/cosmocode/csv/contributors","subscribers_url":"https://api.github.com/repos/cosmocode/csv/subscribers","subscription_url":"https://api.github.com/repos/cosmocode/csv/subscription","commits_url":"https://api.github.com/repos/cosmocode/csv/commits{/sha}","git_commits_url":"https://api.github.com/repos/cosmocode/csv/git/commits{/sha}","comments_url":"https://api.github.com/repos/cosmocode/csv/comments{/number}","issue_comment_url":"https://api.github.com/repos/cosmocode/csv/issues/comments{/number}","contents_url":"https://api.github.com/repos/cosmocode/csv/contents/{+path}","compare_url":"https://api.github.com/repos/cosmocode/csv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cosmocode/csv/merges","archive_url":"https://api.github.com/repos/cosmocode/csv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cosmocode/csv/downloads","issues_url":"https://api.github.com/repos/cosmocode/csv/issues{/number}","pulls_url":"https://api.github.com/repos/cosmocode/csv/pulls{/number}","milestones_url":"https://api.github.com/repos/cosmocode/csv/milestones{/number}","notifications_url":"https://api.github.com/repos/cosmocode/csv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cosmocode/csv/labels{/name}","releases_url":"https://api.github.com/repos/cosmocode/csv/releases{/id}","created_at":"2009-05-15T10:36:45Z","updated_at":"2015-09-11T07:45:18Z","pushed_at":"2015-09-29T18:08:37Z","git_url":"git://github.com/cosmocode/csv.git","ssh_url":"git@github.com:cosmocode/csv.git","clone_url":"https://github.com/cosmocode/csv.git","svn_url":"https://github.com/cosmocode/csv","homepage":"http://www.dokuwiki.org/plugin:csv","size":180,"stargazers_count":9,"watchers_count":9,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cosmocode/csv/pulls/7"},"html":{"href":"https://github.com/cosmocode/csv/pull/7"},"issue":{"href":"https://api.github.com/repos/cosmocode/csv/issues/7"},"comments":{"href":"https://api.github.com/repos/cosmocode/csv/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/cosmocode/csv/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/cosmocode/csv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cosmocode/csv/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/cosmocode/csv/statuses/da31f0b82381fa8c8a7cf9dc05d7c80a30be6128"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":4,"review_comments":0,"commits":3,"additions":50,"deletions":1,"changed_files":1}}