示例#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)
示例#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
示例#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
示例#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)
示例#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)
示例#6
0
文件: context.py 项目: zh-f/trove
 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
示例#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
示例#8
0
文件: context.py 项目: wffeige/trove
    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
示例#9
0
文件: manager.py 项目: wffeige/trove
 def notify_end(self, context, serialized_notification, notification_args):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     notification.notify_end(**notification_args)
示例#10
0
 def notify_exc_info(self, context, serialized_notification,
                     message, exception):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     notification.notify_exc_info(message, exception)
示例#11
0
 def notify_end(self, context, serialized_notification, notification_args):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     notification.notify_end(**notification_args)
示例#12
0
 def notify_exc_info(self, context, serialized_notification, message,
                     exception):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     notification.notify_exc_info(message, exception)