thekie wrote: > > Hey, > I want to develop a new event trigger for plone. It should be fired when > an document expires. > > I am very new to plone and python development. Is there a way of doing > it with a product or do i have to edit the plone core files? > What kind of product is this (ZopeSkel template?)? Is there a product > doing this around? Or am I in the wrong mailing list? >
You can do it as add-on product. This has been done before, though not "productized" as ready solution. The problem is that you cannot "react" to expiring dates. No code runs when the computer clock passes the expiration time. Expiration dates are just filtering conditions to portal_catalog calls. The only way Plone can react anything is HTTP requests. There exist various clock mechanisms to perform timed HTTP requests. You can use one of these clock add-ons to perform a request on your site which will query expired content and then perform a workflow action etc. on these. This all needs some advanced Python skills. I think other community members can recommend what's the state of the art way of doing timers with Plone. ----- Mikko Ohtamaa mFabrik - Freedom Delivered. Web site - http://mfabrik.com Mobile site - http://mfabrik.mobi Blog - http://blog.mfabrik.com -- View this message in context: http://plone.293351.n2.nabble.com/Developing-a-new-object-expires-event-trigger-for-Plone-tp5416468p5416563.html Sent from the Product Developers mailing list archive at Nabble.com. _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
