def deferred_render_PUT(self, request):
"""
Update values of a set of tags (values and tags are given in a JSON
payload) on objects that match a query (query is given in the URI).
@param request: The incoming C{twisted.web.server.Request} request.
@return: A L{Deferred} which will fire with C{None} when the
request has completed. The deferred may errback for a variety of
reasons, for example an invalid query, the mention of a
non-existent tag or a tag that the caller does not have CREATE
permission for.
"""
usage = registry.findUsage(httpValueCategoryName, 'PUT',
ValuesResource)
requestObject = ValuesQuerySchema.createFromRequest(request, usage)
yield self.facadeClient.updateValuesForQueries(
self.session, requestObject)
request.setResponseCode(usage.successCode)
defer.returnValue(None)
评论列表
文章目录