from zope.interface import implements
from collective.lexicon.interfaces import ITermRemovedEvent
from collective.lexicon.interfaces import IVocabularyRemovedEvent
from zope.component.interfaces import ObjectEvent


class TermRemovedEvent(ObjectEvent):
    implements(ITermRemovedEvent)

    def __init__(self, object, vocab_id, term_id):
        super(TermRemovedEvent, self).__init__(object)
        self.term_id = term_id
        self.vocab_id = vocab_id


class VocabularyRemovedEvent(ObjectEvent):
    implements(IVocabularyRemovedEvent)

    def __init__(self, object, vocab_id):
        super(VocabularyRemovedEvent, self).__init__(object)
        self.vocab_id = vocab_id

ecfae5287244a9a6f6f3f482ec72ac9f21ca78d5
<mask token>


class VocabularyRemovedEvent(ObjectEvent):
    implements(IVocabularyRemovedEvent)
    <mask token>

<mask token>


class VocabularyRemovedEvent(ObjectEvent):
    implements(IVocabularyRemovedEvent)

    def __init__(self, object, vocab_id):
        super(VocabularyRemovedEvent, self).__init__(object)
        self.vocab_id = vocab_id

<mask token>


class TermRemovedEvent(ObjectEvent):
    implements(ITermRemovedEvent)
    <mask token>


class VocabularyRemovedEvent(ObjectEvent):
    implements(IVocabularyRemovedEvent)

    def __init__(self, object, vocab_id):
        super(VocabularyRemovedEvent, self).__init__(object)
        self.vocab_id = vocab_id

<mask token>


class TermRemovedEvent(ObjectEvent):
    implements(ITermRemovedEvent)

    def __init__(self, object, vocab_id, term_id):
        super(TermRemovedEvent, self).__init__(object)
        self.term_id = term_id
        self.vocab_id = vocab_id


class VocabularyRemovedEvent(ObjectEvent):
    implements(IVocabularyRemovedEvent)

    def __init__(self, object, vocab_id):
        super(VocabularyRemovedEvent, self).__init__(object)
        self.vocab_id = vocab_id

from zope.interface import implements
from collective.lexicon.interfaces import ITermRemovedEvent
from collective.lexicon.interfaces import IVocabularyRemovedEvent
from zope.component.interfaces import ObjectEvent


class TermRemovedEvent(ObjectEvent):
    implements(ITermRemovedEvent)

    def __init__(self, object, vocab_id, term_id):
        super(TermRemovedEvent, self).__init__(object)
        self.term_id = term_id
        self.vocab_id = vocab_id


class VocabularyRemovedEvent(ObjectEvent):
    implements(IVocabularyRemovedEvent)

    def __init__(self, object, vocab_id):
        super(VocabularyRemovedEvent, self).__init__(object)
        self.vocab_id = vocab_id
