コード例 #1
0
ファイル: manager.py プロジェクト: Tesora/tesora-trove
 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
ファイル: context.py プロジェクト: Hopebaytech/trove
 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
ファイル: manager.py プロジェクト: 2020human/trove-new
 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
ファイル: context.py プロジェクト: Tesora/tesora-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
コード例 #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
ファイル: manager.py プロジェクト: HoratiusTang/trove
 def notify_exc_info(self, context, serialized_notification,
                     message, exception):
     notification = SerializableNotification.deserialize(
         context, serialized_notification)
     notification.notify_exc_info(message, exception)
コード例 #11
0
ファイル: manager.py プロジェクト: HoratiusTang/trove
 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)