{"action":"opened","number":327,"pull_request":{"url":"https://api.github.com/repos/webpy/webpy/pulls/327","id":33101746,"html_url":"https://github.com/webpy/webpy/pull/327","diff_url":"https://github.com/webpy/webpy/pull/327.diff","patch_url":"https://github.com/webpy/webpy/pull/327.patch","issue_url":"https://api.github.com/repos/webpy/webpy/issues/327","number":327,"state":"open","locked":false,"title":"Provide support for multiple input fields","user":{"login":"veprbl","id":245573,"avatar_url":"https://avatars.githubusercontent.com/u/245573?v=3","gravatar_id":"","url":"https://api.github.com/users/veprbl","html_url":"https://github.com/veprbl","followers_url":"https://api.github.com/users/veprbl/followers","following_url":"https://api.github.com/users/veprbl/following{/other_user}","gists_url":"https://api.github.com/users/veprbl/gists{/gist_id}","starred_url":"https://api.github.com/users/veprbl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veprbl/subscriptions","organizations_url":"https://api.github.com/users/veprbl/orgs","repos_url":"https://api.github.com/users/veprbl/repos","events_url":"https://api.github.com/users/veprbl/events{/privacy}","received_events_url":"https://api.github.com/users/veprbl/received_events","type":"User","site_admin":false},"body":"Most of the things were already working except for webapi.input()\r\ngetting utils.storify() to filter out duplicate keys. This will now\r\nallow tell utils.storify() to not do that by simply setting form's\r\ndefault value to some list.\r\n\r\nThe feature can be tested using the following example:\r\n\r\n```python\r\nimport web\r\nfrom web import form\r\n\r\nurls = ('/', 'index')\r\n\r\nmyform = form.Form(\r\n    form.Dropdown(name='car_type[]', multiple='multiple', args=[(\"a\", \"a\"), (\"b\", \"b\")], value=[\"a\", \"b\"]),\r\n    form.Button(\"submit\", type=\"submit\"))\r\n\r\nclass index:\r\n    def GET(self):\r\n        form = myform()\r\n        web.header('Content-Type', 'text/html')\r\n        res = \"\"\r\n        if form.validates():\r\n            res += \"car_type[] = %s\" % repr(form[\"car_type[]\"].value)\r\n        res += \"\"\"<form method=\"GET\">%s</form>\"\"\" % form.render()\r\n        return res\r\n\r\nif __name__==\"__main__\":\r\n    web.application(urls, globals()).run()\r\n```","created_at":"2015-04-11T11:09:22Z","updated_at":"2015-04-11T11:09:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f2ad9de94f061c2689fe3ab4d0d3cbbd5863425","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/webpy/webpy/pulls/327/commits","review_comments_url":"https://api.github.com/repos/webpy/webpy/pulls/327/comments","review_comment_url":"https://api.github.com/repos/webpy/webpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/webpy/webpy/issues/327/comments","statuses_url":"https://api.github.com/repos/webpy/webpy/statuses/bd4086d9d5586f7ea89bbccd249e3309d7f962d2","head":{"label":"veprbl:multiinput","ref":"multiinput","sha":"bd4086d9d5586f7ea89bbccd249e3309d7f962d2","user":{"login":"veprbl","id":245573,"avatar_url":"https://avatars.githubusercontent.com/u/245573?v=3","gravatar_id":"","url":"https://api.github.com/users/veprbl","html_url":"https://github.com/veprbl","followers_url":"https://api.github.com/users/veprbl/followers","following_url":"https://api.github.com/users/veprbl/following{/other_user}","gists_url":"https://api.github.com/users/veprbl/gists{/gist_id}","starred_url":"https://api.github.com/users/veprbl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veprbl/subscriptions","organizations_url":"https://api.github.com/users/veprbl/orgs","repos_url":"https://api.github.com/users/veprbl/repos","events_url":"https://api.github.com/users/veprbl/events{/privacy}","received_events_url":"https://api.github.com/users/veprbl/received_events","type":"User","site_admin":false},"repo":{"id":33771942,"name":"webpy","full_name":"veprbl/webpy","owner":{"login":"veprbl","id":245573,"avatar_url":"https://avatars.githubusercontent.com/u/245573?v=3","gravatar_id":"","url":"https://api.github.com/users/veprbl","html_url":"https://github.com/veprbl","followers_url":"https://api.github.com/users/veprbl/followers","following_url":"https://api.github.com/users/veprbl/following{/other_user}","gists_url":"https://api.github.com/users/veprbl/gists{/gist_id}","starred_url":"https://api.github.com/users/veprbl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veprbl/subscriptions","organizations_url":"https://api.github.com/users/veprbl/orgs","repos_url":"https://api.github.com/users/veprbl/repos","events_url":"https://api.github.com/users/veprbl/events{/privacy}","received_events_url":"https://api.github.com/users/veprbl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/veprbl/webpy","description":"web.py is a web framework for python that is as simple as it is powerful. ","fork":true,"url":"https://api.github.com/repos/veprbl/webpy","forks_url":"https://api.github.com/repos/veprbl/webpy/forks","keys_url":"https://api.github.com/repos/veprbl/webpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/veprbl/webpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/veprbl/webpy/teams","hooks_url":"https://api.github.com/repos/veprbl/webpy/hooks","issue_events_url":"https://api.github.com/repos/veprbl/webpy/issues/events{/number}","events_url":"https://api.github.com/repos/veprbl/webpy/events","assignees_url":"https://api.github.com/repos/veprbl/webpy/assignees{/user}","branches_url":"https://api.github.com/repos/veprbl/webpy/branches{/branch}","tags_url":"https://api.github.com/repos/veprbl/webpy/tags","blobs_url":"https://api.github.com/repos/veprbl/webpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/veprbl/webpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/veprbl/webpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/veprbl/webpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/veprbl/webpy/statuses/{sha}","languages_url":"https://api.github.com/repos/veprbl/webpy/languages","stargazers_url":"https://api.github.com/repos/veprbl/webpy/stargazers","contributors_url":"https://api.github.com/repos/veprbl/webpy/contributors","subscribers_url":"https://api.github.com/repos/veprbl/webpy/subscribers","subscription_url":"https://api.github.com/repos/veprbl/webpy/subscription","commits_url":"https://api.github.com/repos/veprbl/webpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/veprbl/webpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/veprbl/webpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/veprbl/webpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/veprbl/webpy/contents/{+path}","compare_url":"https://api.github.com/repos/veprbl/webpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/veprbl/webpy/merges","archive_url":"https://api.github.com/repos/veprbl/webpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/veprbl/webpy/downloads","issues_url":"https://api.github.com/repos/veprbl/webpy/issues{/number}","pulls_url":"https://api.github.com/repos/veprbl/webpy/pulls{/number}","milestones_url":"https://api.github.com/repos/veprbl/webpy/milestones{/number}","notifications_url":"https://api.github.com/repos/veprbl/webpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/veprbl/webpy/labels{/name}","releases_url":"https://api.github.com/repos/veprbl/webpy/releases{/id}","created_at":"2015-04-11T10:33:41Z","updated_at":"2015-04-11T10:33:42Z","pushed_at":"2015-04-11T11:07:14Z","git_url":"git://github.com/veprbl/webpy.git","ssh_url":"git@github.com:veprbl/webpy.git","clone_url":"https://github.com/veprbl/webpy.git","svn_url":"https://github.com/veprbl/webpy","homepage":"http://webpy.org","size":2576,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"webpy:master","ref":"master","sha":"7f629f47b6d9eacd237889cf14c74ec9692c44e3","user":{"login":"webpy","id":26682,"avatar_url":"https://avatars.githubusercontent.com/u/26682?v=3","gravatar_id":"","url":"https://api.github.com/users/webpy","html_url":"https://github.com/webpy","followers_url":"https://api.github.com/users/webpy/followers","following_url":"https://api.github.com/users/webpy/following{/other_user}","gists_url":"https://api.github.com/users/webpy/gists{/gist_id}","starred_url":"https://api.github.com/users/webpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webpy/subscriptions","organizations_url":"https://api.github.com/users/webpy/orgs","repos_url":"https://api.github.com/users/webpy/repos","events_url":"https://api.github.com/users/webpy/events{/privacy}","received_events_url":"https://api.github.com/users/webpy/received_events","type":"Organization","site_admin":false},"repo":{"id":57419,"name":"webpy","full_name":"webpy/webpy","owner":{"login":"webpy","id":26682,"avatar_url":"https://avatars.githubusercontent.com/u/26682?v=3","gravatar_id":"","url":"https://api.github.com/users/webpy","html_url":"https://github.com/webpy","followers_url":"https://api.github.com/users/webpy/followers","following_url":"https://api.github.com/users/webpy/following{/other_user}","gists_url":"https://api.github.com/users/webpy/gists{/gist_id}","starred_url":"https://api.github.com/users/webpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webpy/subscriptions","organizations_url":"https://api.github.com/users/webpy/orgs","repos_url":"https://api.github.com/users/webpy/repos","events_url":"https://api.github.com/users/webpy/events{/privacy}","received_events_url":"https://api.github.com/users/webpy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/webpy/webpy","description":"web.py is a web framework for python that is as simple as it is powerful. ","fork":false,"url":"https://api.github.com/repos/webpy/webpy","forks_url":"https://api.github.com/repos/webpy/webpy/forks","keys_url":"https://api.github.com/repos/webpy/webpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webpy/webpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webpy/webpy/teams","hooks_url":"https://api.github.com/repos/webpy/webpy/hooks","issue_events_url":"https://api.github.com/repos/webpy/webpy/issues/events{/number}","events_url":"https://api.github.com/repos/webpy/webpy/events","assignees_url":"https://api.github.com/repos/webpy/webpy/assignees{/user}","branches_url":"https://api.github.com/repos/webpy/webpy/branches{/branch}","tags_url":"https://api.github.com/repos/webpy/webpy/tags","blobs_url":"https://api.github.com/repos/webpy/webpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webpy/webpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webpy/webpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/webpy/webpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webpy/webpy/statuses/{sha}","languages_url":"https://api.github.com/repos/webpy/webpy/languages","stargazers_url":"https://api.github.com/repos/webpy/webpy/stargazers","contributors_url":"https://api.github.com/repos/webpy/webpy/contributors","subscribers_url":"https://api.github.com/repos/webpy/webpy/subscribers","subscription_url":"https://api.github.com/repos/webpy/webpy/subscription","commits_url":"https://api.github.com/repos/webpy/webpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/webpy/webpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/webpy/webpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/webpy/webpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/webpy/webpy/contents/{+path}","compare_url":"https://api.github.com/repos/webpy/webpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webpy/webpy/merges","archive_url":"https://api.github.com/repos/webpy/webpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webpy/webpy/downloads","issues_url":"https://api.github.com/repos/webpy/webpy/issues{/number}","pulls_url":"https://api.github.com/repos/webpy/webpy/pulls{/number}","milestones_url":"https://api.github.com/repos/webpy/webpy/milestones{/number}","notifications_url":"https://api.github.com/repos/webpy/webpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webpy/webpy/labels{/name}","releases_url":"https://api.github.com/repos/webpy/webpy/releases{/id}","created_at":"2008-09-29T03:42:56Z","updated_at":"2015-04-10T09:19:02Z","pushed_at":"2015-04-11T11:09:22Z","git_url":"git://github.com/webpy/webpy.git","ssh_url":"git@github.com:webpy/webpy.git","clone_url":"https://github.com/webpy/webpy.git","svn_url":"https://github.com/webpy/webpy","homepage":"http://webpy.org","size":2576,"stargazers_count":3330,"watchers_count":3330,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":830,"mirror_url":null,"open_issues_count":171,"forks":830,"open_issues":171,"watchers":3330,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/webpy/webpy/pulls/327"},"html":{"href":"https://github.com/webpy/webpy/pull/327"},"issue":{"href":"https://api.github.com/repos/webpy/webpy/issues/327"},"comments":{"href":"https://api.github.com/repos/webpy/webpy/issues/327/comments"},"review_comments":{"href":"https://api.github.com/repos/webpy/webpy/pulls/327/comments"},"review_comment":{"href":"https://api.github.com/repos/webpy/webpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/webpy/webpy/pulls/327/commits"},"statuses":{"href":"https://api.github.com/repos/webpy/webpy/statuses/bd4086d9d5586f7ea89bbccd249e3309d7f962d2"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":1}}