def deferred_render_DELETE(self, request):
"""
Delete a tag from an object. Return a Deferred that fires with None
once the facade has done the deletion.
The following code, apart from the yield self._setObjectId(), is
taken verbatim from deferred_render_DELETE in objects.py. So if
you change this code, you'll likely need to change that, and vice
versa.
@param request: The HTTP request.
@return: A C{Deferred} that fires with C{None} once the request has
completed.
"""
usage = registry.findUsage(httpAboutCategoryName, 'DELETE',
AboutTagInstanceResource)
registry.checkRequest(usage, request)
yield self._setObjectId()
yield self.facadeClient.deleteTagInstance(
self.session, self.path, self.objectId)
request.setResponseCode(usage.successCode)
defer.returnValue(None)
评论列表
文章目录