Ejemplo n.º 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)
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 9
0
 def notify_end(self, context, serialized_notification, notification_args):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     notification.notify_end(**notification_args)
Ejemplo n.º 10
0
 def notify_exc_info(self, context, serialized_notification,
                     message, exception):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     notification.notify_exc_info(message, exception)
Ejemplo n.º 11
0
 def notify_end(self, context, serialized_notification, notification_args):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     notification.notify_end(**notification_args)
Ejemplo n.º 12
0
 def notify_exc_info(self, context, serialized_notification, message,
                     exception):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     notification.notify_exc_info(message, exception)