def on_layer_viewer(self, body, message): # logger.debug("on_layer_viewer: RECEIVED MSG - body: %r" % (body,)) viewer = body.get("viewer") owner_layer = body.get("owner_layer") layer_id = body.get("layer_id") layer_view_counter(layer_id, viewer) if settings.EMAIL_ENABLE: send_email_owner_on_view(owner_layer, viewer, layer_id) message.ack() logger.info("on_layer_viewer: finished") self._check_message_limit()
def on_layer_viewer(self, body, message): logger.debug("on_layer_viewer: RECEIVED MSG - body: %r" % (body,)) viewer = body.get("viewer") # owner_layer = body.get("owner_layer") layer_id = body.get("layer_id") layer_view_counter(layer_id, viewer) # TODO Disabled for now. This should be handeld through Notifications # if settings.EMAIL_ENABLE: # send_email_owner_on_view(owner_layer, viewer, layer_id) message.ack() logger.debug("on_layer_viewer: finished") self._check_message_limit()