{"action":"created","issue":{"url":"https://api.github.com/repos/bartvm/blocks/issues/73","labels_url":"https://api.github.com/repos/bartvm/blocks/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/bartvm/blocks/issues/73/comments","events_url":"https://api.github.com/repos/bartvm/blocks/issues/73/events","html_url":"https://github.com/bartvm/blocks/pull/73","id":52514117,"number":73,"title":"New selector interface","user":{"login":"janchorowski","id":1454551,"avatar_url":"https://avatars.githubusercontent.com/u/1454551?v=3","gravatar_id":"","url":"https://api.github.com/users/janchorowski","html_url":"https://github.com/janchorowski","followers_url":"https://api.github.com/users/janchorowski/followers","following_url":"https://api.github.com/users/janchorowski/following{/other_user}","gists_url":"https://api.github.com/users/janchorowski/gists{/gist_id}","starred_url":"https://api.github.com/users/janchorowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janchorowski/subscriptions","organizations_url":"https://api.github.com/users/janchorowski/orgs","repos_url":"https://api.github.com/users/janchorowski/repos","events_url":"https://api.github.com/users/janchorowski/events{/privacy}","received_events_url":"https://api.github.com/users/janchorowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-19T18:34:49Z","updated_at":"2015-01-15T20:52:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bartvm/blocks/pulls/73","html_url":"https://github.com/bartvm/blocks/pull/73","diff_url":"https://github.com/bartvm/blocks/pull/73.diff","patch_url":"https://github.com/bartvm/blocks/pull/73.patch"},"body":"Hi,\r\n\r\nthis is my first shot at a more feature-full selector interface. It is not meant to be merged, but please comment. \r\n\r\nIt supports pretty much everything I could think of:\r\n`/` to go down one level \r\n`//` to go down zero or more levels\r\n`name` to match against names\r\n`[regexp]` to regexp match against names\r\n`@attribute==value` to check object attributes (to e.g. select bricks that have biases, that were initialized etc.)\r\n`.container` to select stuff from the container (to select e.g. parameter)\r\n\r\nThe `selection` is always a `set` of selected objects or a `dict` mapping paths to selected objects. The `Selectors` take a selection and enumerate selected items. \r\n\r\nUsage examples are in the tests. the syntax is slightly changed wrt Dima's selectors, but this is much more flexible. In fact, I only assume that things have a `children` attribute and a `name` attribute.\r\n\r\nI think it is an important part to get right, so feel free to comment\r\n"},"comment":{"url":"https://api.github.com/repos/bartvm/blocks/issues/comments/70159457","html_url":"https://github.com/bartvm/blocks/pull/73#issuecomment-70159457","issue_url":"https://api.github.com/repos/bartvm/blocks/issues/73","id":70159457,"user":{"login":"rizar","id":654434,"avatar_url":"https://avatars.githubusercontent.com/u/654434?v=3","gravatar_id":"","url":"https://api.github.com/users/rizar","html_url":"https://github.com/rizar","followers_url":"https://api.github.com/users/rizar/followers","following_url":"https://api.github.com/users/rizar/following{/other_user}","gists_url":"https://api.github.com/users/rizar/gists{/gist_id}","starred_url":"https://api.github.com/users/rizar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rizar/subscriptions","organizations_url":"https://api.github.com/users/rizar/orgs","repos_url":"https://api.github.com/users/rizar/repos","events_url":"https://api.github.com/users/rizar/events{/privacy}","received_events_url":"https://api.github.com/users/rizar/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T20:52:43Z","updated_at":"2015-01-15T20:52:43Z","body":"Why can't the user just select all the parameters and then choose the ones he needs?\r\n\r\nAnyways, I think you have more than enough functionality for the start."}}