{"action":"created","issue":{"url":"https://api.github.com/repos/brandicted/nefertari/issues/121","labels_url":"https://api.github.com/repos/brandicted/nefertari/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/brandicted/nefertari/issues/121/comments","events_url":"https://api.github.com/repos/brandicted/nefertari/issues/121/events","html_url":"https://github.com/brandicted/nefertari/issues/121","id":111902920,"number":121,"title":"wrapper.py not passing parent data to pyramid for add_object_url","user":{"login":"adam-codeberg","id":5601282,"avatar_url":"https://avatars.githubusercontent.com/u/5601282?v=3","gravatar_id":"","url":"https://api.github.com/users/adam-codeberg","html_url":"https://github.com/adam-codeberg","followers_url":"https://api.github.com/users/adam-codeberg/followers","following_url":"https://api.github.com/users/adam-codeberg/following{/other_user}","gists_url":"https://api.github.com/users/adam-codeberg/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-codeberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-codeberg/subscriptions","organizations_url":"https://api.github.com/users/adam-codeberg/orgs","repos_url":"https://api.github.com/users/adam-codeberg/repos","events_url":"https://api.github.com/users/adam-codeberg/events{/privacy}","received_events_url":"https://api.github.com/users/adam-codeberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-16T20:16:04Z","updated_at":"2015-10-18T18:58:19Z","closed_at":null,"body":"Detailed discussion found here https://github.com/brandicted/ramses/issues/89#issuecomment-148740716\r\n\r\n### Solution\r\n\r\nwrapper.py failing to provide Pyramid with the right **kwarg key\r\nSee  https://github.com/brandicted/nefertari/blob/master/nefertari/wrappers.py#L312\r\n\r\nIt hits this part of Pyramid and dies https://github.com/Pylons/pyramid/blob/master/pyramid/url.py#L279 because it cant find the route based on the params given to it.\r\nPyramid needs a key:value in the **kwargs dict for the parent that its not being given.\r\nOnce I change the wrappers.py line to \r\n\r\n````python\r\nresource.uid, **{'contacts_id': 1, resource.id_name: obj_pk})\r\n````\r\nIt works, have confirmed with the postgresql database.\r\n\r\nNext step is to find a way to assign the key:value programatically."},"comment":{"url":"https://api.github.com/repos/brandicted/nefertari/issues/comments/149038850","html_url":"https://github.com/brandicted/nefertari/issues/121#issuecomment-149038850","issue_url":"https://api.github.com/repos/brandicted/nefertari/issues/121","id":149038850,"user":{"login":"adam-codeberg","id":5601282,"avatar_url":"https://avatars.githubusercontent.com/u/5601282?v=3","gravatar_id":"","url":"https://api.github.com/users/adam-codeberg","html_url":"https://github.com/adam-codeberg","followers_url":"https://api.github.com/users/adam-codeberg/followers","following_url":"https://api.github.com/users/adam-codeberg/following{/other_user}","gists_url":"https://api.github.com/users/adam-codeberg/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-codeberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-codeberg/subscriptions","organizations_url":"https://api.github.com/users/adam-codeberg/orgs","repos_url":"https://api.github.com/users/adam-codeberg/repos","events_url":"https://api.github.com/users/adam-codeberg/events{/privacy}","received_events_url":"https://api.github.com/users/adam-codeberg/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T18:58:19Z","updated_at":"2015-10-18T18:58:19Z","body":"You're welcome! I'll clean up that rogue print statement and create the PR in about ~8hrs once I'm back in the office."}}