{"comment":{"url":"https://api.github.com/repos/amarie004/ndb/comments/12834045","html_url":"https://github.com/amarie004/ndb/commit/04755fb2f1eb84f5621e32fa4f946b5e0188c29d#commitcomment-12834045","id":12834045,"user":{"login":"amarie004","id":8523645,"avatar_url":"https://avatars.githubusercontent.com/u/8523645?v=3","gravatar_id":"","url":"https://api.github.com/users/amarie004","html_url":"https://github.com/amarie004","followers_url":"https://api.github.com/users/amarie004/followers","following_url":"https://api.github.com/users/amarie004/following{/other_user}","gists_url":"https://api.github.com/users/amarie004/gists{/gist_id}","starred_url":"https://api.github.com/users/amarie004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amarie004/subscriptions","organizations_url":"https://api.github.com/users/amarie004/orgs","repos_url":"https://api.github.com/users/amarie004/repos","events_url":"https://api.github.com/users/amarie004/events{/privacy}","received_events_url":"https://api.github.com/users/amarie004/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"04755fb2f1eb84f5621e32fa4f946b5e0188c29d","created_at":"2015-08-21T17:35:52Z","updated_at":"2015-08-21T17:35:52Z","body":"I think the issue is also in my retrieve_method … I don’t return a value. No wonder I keep getting NONE. But the thing is, if I return a value, say the name of something, than it is a string which is problematic since the convenience.py piece is built to do just that: grab a string and assign it a variable and pass the variable in-place of the string. I have a nice little test method that checks for strings, int, float, and None that I want to use against all my methods. Should I use it in a separate file or add it under each function? \n\nAlso, I am assigning some functions to a variable in my test file and then calling that inside another function e.g. sa = api.create_element(’something’, dm). This is not going to happen, so I got rid of that in the test file. \n\n\n> On Aug 20, 2015, at 1:44 PM, brianthelion <notifications@github.com> wrote:\n> \n> No, you should just do an check to see whether you have a string, int, or object. If you have an object, then you don't have to do anything. If you have a string or an int, then you need to retrieve the object.\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/amarie004/ndb/commit/04755fb2f1eb84f5621e32fa4f946b5e0188c29d#commitcomment-12813113>.\n> \n\n"}}