Example #1
0
 def notify_exc_info(self, context, serialized_notification,
                     message, exception):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     LOG.error(_("Guest exception on request %(req)s:\n%(exc)s")
               % {'req': notification.request_id, 'exc': exception})
     notification.notify_exc_info(message, exception)
Example #2
0
 def from_dict(cls, values):
     n_values = values.pop('trove_notification', None)
     context = cls(**values)
     if n_values:
         context.notification = SerializableNotification.deserialize(
             context, n_values)
     return context
Example #3
0
 def from_dict(cls, values):
     n_values = values.pop('trove_notification', None)
     context = cls(**values)
     if n_values:
         context.notification = SerializableNotification.deserialize(
             context, n_values)
     return context
Example #4
0
 def notify_exc_info(self, context, serialized_notification,
                     message, exception):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     LOG.error(_("Guest exception on request %(req)s:\n%(exc)s")
               % {'req': notification.request_id, 'exc': exception})
     notification.notify_exc_info(message, exception)
Example #5
0
 def notify_exc_info(self, context, serialized_notification,
                     message, exception):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     LOG.error("Guest exception on request %s:\n%s"
               % (notification.request_id, exception))
     notification.notify_exc_info(message, exception)
Example #6
0
 def from_dict(cls, values):
     n_values = values.pop('trove_notification', None)
     values = cls._remove_incompatible_context_args(values)
     context = cls(**values)
     if n_values:
         context.notification = SerializableNotification.deserialize(
             context, n_values)
     return context
Example #7
0
 def from_dict(cls, values):
     n_values = values.pop('trove_notification', None)
     values = cls._remove_incompatible_context_args(values)
     context = cls(**values)
     if n_values:
         context.notification = SerializableNotification.deserialize(
             context, n_values)
     return context
Example #8
0
    def from_dict(cls, values):
        n_values = values.pop('trove_notification', None)
        ctx = super(TroveContext, cls).from_dict(
            values,
            limit=values.get('limit'),
            marker=values.get('marker'),
            service_catalog=values.get('service_catalog'))

        if n_values:
            ctx.notification = SerializableNotification.deserialize(
                ctx, n_values)
        return ctx
Example #9
0
 def notify_end(self, context, serialized_notification, notification_args):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     notification.notify_end(**notification_args)
Example #10
0
 def notify_exc_info(self, context, serialized_notification,
                     message, exception):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     notification.notify_exc_info(message, exception)
Example #11
0
 def notify_end(self, context, serialized_notification, notification_args):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     notification.notify_end(**notification_args)
Example #12
0
 def notify_exc_info(self, context, serialized_notification, message,
                     exception):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     notification.notify_exc_info(message, exception)