def create_resource(self, request_data): if not self._validate_internal(request_data): error.bad_request( "Could not create resource. Request data (%s) is invalid." % ( request_data)) return self._create_internal(request_data)