Date index for Mar 2003


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [achievo] PostAdd -> PostEdit for project class



Since the project node is NF_EDITAFTERADD, you can ignore postAdd() and just use postUpdate() and postDel(). You might want to add NF_TRACKCHANGES so you in postUpdate() get the orginialrecord and easily could see wether the project is totally new or "merely" updated.

/Jonas

Pietro Ravasio wrote:

Hi there,

I'd like to extend project class to be able to send an email to everybody is involved in the project whenever this project is created, updated or deleted (I've already added a "team" associated with the project)

I was thinking to "copy" from todo node and use PostAdd, PostUpdate and PostDel, but I've got a problem with them since, for instance, PostAdd is called after the first insertion into the db of only the "name" of the project (then the dispatcher calls an edit action on it), and since there's not a "PostEdit" function in AtkNode class... Is there a way to override the moment in wich PostAdd is called? (the problem is that $rec is void after "add" action on a project, since it contains only the name)

I wouldn't like to modify atk code (atkNode class)

I'm working on the latest stable version of achievo (0.8 series)

Thanks,
Pietro

--
Pietro Ravasio <pietro.ravasio dot 
System and Network Engineer
Abbeynet s.r.l. - http://www.abbeynet.it
TEL: +390702109044
FAX: +390702109013


[ Achievo mailing list - http://www.achievo.org/ ] [ to unsubscribe send an e-mail to achievo-unsubscribe dot 


http://www.achievo.org/lists achievo.org - ©1999-2002 ibuildings.nl BV