def _put_host(self):
        return self._put('', ApiHost, data=self)
The approve view should only be accessible to 'moderators'
dataset/ETHPy150Open openstack/sahara/sahara/plugins/cdh/client/hosts.py/ApiHost._put_host--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/comment_tests/tests/moderation_view_tests.py/ApproveViewTests.testApprovePermissions