Skip to content

Commit

Permalink
ZEN-34855:Fix MessagePostPublishingEvent is incorrectly decorated (#4535
Browse files Browse the repository at this point in the history
)

Fixes ZEN-34855.
  • Loading branch information
vsaliieva authored Aug 30, 2024
1 parent ec83e25 commit f89ca49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Products/ZenMessaging/ChangeEvents/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ def __init__(self, msgs, maintWindowChanges, refs=None):
self.maintWindowChanges = maintWindowChanges


@implementer(IMessagePostPublishingEvent)
class MessagePostPublishingEvent(object):
"""
Fired after transaction completion.
"""

implementer(IMessagePostPublishingEvent)

def __init__(self, refs=None):
self.refs = refs
Expand Down
10 changes: 5 additions & 5 deletions Products/ZenMessaging/queuemessaging/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from zenoss.protocols.protobufs import zep_pb2 as eventConstants
from zenoss.protocols.protobufs import model_pb2 as modelConstants
from zope.interface import implements
from zope.interface import implementer

from Products.ZenEvents.events2.proxy import EventProxy
from Products.ZenMessaging.queuemessaging.interfaces import (
Expand Down Expand Up @@ -61,12 +61,12 @@ def autoMapFields(self, proto):
continue


@implementer(IModelProtobufSerializer)
class DeviceProtobuf(ObjectProtobuf):
"""
Fills up the properties of a device protobuf.
"""

implements(IModelProtobufSerializer)

@property
def modelType(self):
Expand All @@ -78,12 +78,12 @@ def fill(self, proto):
return proto


@implementer(IModelProtobufSerializer)
class OrganizerProtobuf(ObjectProtobuf):
"""
Fills up the properties of an organizer protobuf.
"""

implements(IModelProtobufSerializer)

@property
def modelType(self):
Expand All @@ -97,12 +97,12 @@ def fill(self, proto):
return proto


@implementer(IModelProtobufSerializer)
class DeviceComponentProtobuf(ObjectProtobuf):
"""
Fills up the properties of a Device Component
"""

implements(IModelProtobufSerializer)

@property
def modelType(self):
Expand Down Expand Up @@ -309,12 +309,12 @@ def mapEvent(self, proto, value):
proto.details.add(name=self._detailName, value=[value])


@implementer(IProtobufSerializer)
class EventProtobuf(ObjectProtobuf):
"""
Fills up the properties of an event
"""

implements(IProtobufSerializer)

# event property, protobuf property
_FIELD_MAPPERS = {
Expand Down

0 comments on commit f89ca49

Please sign in to comment.