def _preProcess_default(self, resource, request):
        if request.nodeType not in ('leaf', 'collection'):
            raise error.StanzaError('not-acceptable')
        else:
            return request
dataset/ETHPy150Open ralphm/wokkel/wokkel/pubsub.py/PubSubService._preProcess_default/original