-----Mensaje original----- De: Julien Anguenot [mailto:[EMAIL PROTECTED] Enviado el: jueves, 23 de marzo de 2006 22:19 Para: Antonio Muñoz Lopez CC: [email protected] Asunto: Re: RV: [CPS-devel] Launch a script when an event happens
Antonio Muñoz Lopez wrote: [...] >> Is it possible to launch a script when a event is generated?, and if it >> is possible where do I indicate to the event the script to execute?. > > Yup. Check the ComputeRecipientsRule objcect type. > > Check out this : > > http://svn.nuxeo.org/trac/pub/file/CPSSubscriptions/trunk/doc/computed_recipients_rule.txt I check out computed_recipients_rule.txt and I have created a ComputedRecipientsRules object within my subscription object , but ancestor, event_type, triggering_user and DateTime are not available in tales expression propertie namespace. How can I access those objects? Those are supposed to be available within the namesapce as the documentation specifies it. Can you give us the actual TALES expression you're using ? J. -- This is my TALES expression: python:context.eventLog(event_type) Traceback (most recent call last): ....... ....... File "Python expression "context.eventLog(event_type)"", line 1, in <expression> NameError: name 'event_type' is not defined Thanks _______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
