Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(5)  |  Derive(0)  |  Import(4)
Event for journal entries

src/f/t/ftw.journal-1.2.7/ftw/journal/rules/journal.py   ftw.journal(Download)
from OFS.SimpleItem import SimpleItem
from ftw.journal import journalMessageFactory as _
from ftw.journal.events.events import JournalEntryEvent
from plone.app.contentrules.browser.formhelper import AddForm, EditForm
from plone.contentrules.rule.interfaces import IRuleElementData, IExecutable
        obj = self.event.object
 
        notify(JournalEntryEvent(obj, comment, action))
 
        return True

src/f/t/ftw.notification.email-2.0.7/ftw/notification/email/events/handlers.py   ftw.notification.email(Download)
from DateTime import DateTime
from ftw.journal.events.events import JournalEntryEvent
from ftw.notification.base import notification_base_factory as _
from ftw.notification.base.interfaces import INotifier
from Products.CMFCore.utils import getToolByName
            comment=comment))
 
    notify(JournalEntryEvent(obj, journal_comment, action))
 
    kwargs = dict(action=action, actor=actor, time=time)

src/f/t/ftw.journal-1.2.7/ftw/journal/tests/test_unit_events.py   ftw.journal(Download)
from ftw.journal.events.events import JournalEntryEvent
from ftw.journal.events.handlers import JournalEntryHandler
from ftw.journal.interfaces import IJournalizer
from plone.mocktestcase import MockTestCase
from zope.interface import Interface
 
        event = JournalEntryEvent(
            mock_context,
            'new entry',
            'save',

src/f/t/ftw.journal-1.2.7/ftw/journal/tests/test_integration.py   ftw.journal(Download)
from DateTime import DateTime
from ftw.journal.config import JOURNAL_ENTRIES_ANNOTATIONS_KEY
from ftw.journal.events.events import JournalEntryEvent
from ftw.journal.interfaces import \
    IAnnotationsJournalizable, IWorkflowHistoryJournalizable
        alsoProvides(doc, IAnnotationsJournalizable)
 
        notify(JournalEntryEvent(doc, "added new line", "modified"))
 
        journal = IAnnotations(doc).get(JOURNAL_ENTRIES_ANNOTATIONS_KEY)[0]
        alsoProvides(doc, IWorkflowHistoryJournalizable)
 
        notify(JournalEntryEvent(doc, "new workflow", "modified"))
 
        journal = wftool.getStatusOf('simple_publication_workflow', doc)