Date index for Mar 2003


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

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



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)

PostUpdate is called whenever a change is made an saved to a project or another node. So postUpdate is the same as the postEdit function you're describing. The developersdocumentation of achievo also explains this. You can find the documentation at www.achievo.org/developer/documentation.


Good luck!

Regards,

Lineke

--
Lineke Willems     <lineke dot 
ibuildings.nl BV - information technology
http://www.ibuildings.nl -  046 40 00 923




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