You don't need to do this. The `id` parameter of `package_show` takes name or id([docs](http://docs.ckan.org/en/latest/api/index.html#ckan.logic.action.get.package_show). This is common across CKAN and you should probably make the `id` parameter required by using `_get_or_bust` (see other action functions).