def _save_notification(self, uaid_data, notification):
    'Saves a notification, returns a deferred.\n\n        This version of the overridden method saves each individual message\n        to the message table along with relevant request headers if\n        available.\n\n        :type uaid_data: dict\n\n        '
    month_table = uaid_data['current_month']
    if (notification.ttl is None):
        raise RouterException('Missing TTL Header', response_body=('Missing TTL Header, see: %s' % TTL_URL), status_code=400, errno=111, log_exception=False)
    if (notification.ttl == 0):
        location = ('%s/m/%s' % (self.conf.endpoint_url, notification.version))
        raise RouterException('Finished Routing', status_code=201, log_exception=False, headers={'TTL': str(notification.ttl), 'Location': location}, logged_status=204)
    return deferToThread(self.db.message_table(month_table).store_message, notification=notification)
Saves a notification, returns a deferred.

This version of the overridden method saves each individual message
to the message table along with relevant request headers if
available.

:type uaid_data: dict
def _save_notification(self, uaid_data, notification):
    'Saves a notification, returns a deferred.\n\n        This version of the overridden method saves each individual message\n        to the message table along with relevant request headers if\n        available.\n\n        :type uaid_data: dict\n\n        '
    month_table = uaid_data['current_month']
    if (notification.ttl is None):
        raise RouterException('Missing TTL Header', response_body=('Missing TTL Header, see: %s' % TTL_URL), status_code=400, errno=111, log_exception=False)
    if (notification.ttl == 0):
        location = ('%s/m/%s' % (self.conf.endpoint_url, notification.version))
        raise RouterException('Finished Routing', status_code=201, log_exception=False, headers={'TTL': str(notification.ttl), 'Location': location}, logged_status=204)
    return deferToThread(self.db.message_table(month_table).store_message, notification=notification)