Skip to content

Correspondence Technologies

Sections
Personal tools
You are here: Home » Software » SfIndex Demo » collective - CMFEventService

Package: collective - CMFEventService

a test of SfIndex product

Sourceforge Info

Project Name: collective
Package Name: CMFEventService
Files Page:
Browse CVS: http://cvs.sourceforge.net/viewcvs.py/collective/CMFEventService/  

Package README (CVS ver. 1.1.1.1)

CMFEventService

A package based on Event and EventListenerTool in cvs.zope.org.
It is targeted to ship with Plone in 1.1.  There should be
nothing Plone specific about this package.  There are a number
of implementation details.

The object is not guarantee'd to have its proper context,
unless you pass it in to the event.  Please write the issues
here.

if you want to fire a script on an event you can do the following:
(in plone)

1. goto portal_listeners
2. Add a Rule:
   ID: content add
   Event Type: IContentAddEvent
   Condition:
   Actions: test_event

create a test_event (Script) Python
parameters: event

context.plone_scripts.plone_debug("event was generated" + str(event))

in the WorkflowTool.notifyCreated(obj) in Plone 1.0.3 and above it should
attempt to create a ContentAddEvent with the object and its objects folder
as the context and publish the event if possible.


 

Powered by Plone

This site conforms to the following standards: