{"action":"opened","issue":{"url":"https://api.github.com/repos/kragniz/json-sempai/issues/23","labels_url":"https://api.github.com/repos/kragniz/json-sempai/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/kragniz/json-sempai/issues/23/comments","events_url":"https://api.github.com/repos/kragniz/json-sempai/issues/23/events","html_url":"https://github.com/kragniz/json-sempai/issues/23","id":128722271,"number":23,"title":"Auto eval code strings","user":{"login":"lkraider","id":52256,"avatar_url":"https://avatars.githubusercontent.com/u/52256?v=3","gravatar_id":"","url":"https://api.github.com/users/lkraider","html_url":"https://github.com/lkraider","followers_url":"https://api.github.com/users/lkraider/followers","following_url":"https://api.github.com/users/lkraider/following{/other_user}","gists_url":"https://api.github.com/users/lkraider/gists{/gist_id}","starred_url":"https://api.github.com/users/lkraider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lkraider/subscriptions","organizations_url":"https://api.github.com/users/lkraider/orgs","repos_url":"https://api.github.com/users/lkraider/repos","events_url":"https://api.github.com/users/lkraider/events{/privacy}","received_events_url":"https://api.github.com/users/lkraider/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-26T04:35:56Z","updated_at":"2016-01-26T04:35:56Z","closed_at":null,"body":"In my production server I keep needing to do:\r\n\r\ndef crud_handler():\r\n    request = __import__('user_posted_json')\r\n    eval(request.method)(db_connection, request.args)\r\n\r\nPlease consider allowing this syntax so my code looks cleaner:\r\n\r\ndef crud_handler():\r\n    __import__('request').method(db_connection, request.args)\r\n\r\nI think adding a __call__ method on DottedDict that wraps eval should do it.\r\n\r\n"}}