[schooltool-dev] Re: Catching changes in SchoolTool

Paul Carduner paulcarduner at gmail.com
Wed Jun 13 02:32:28 EDT 2007


I would not be surprised is IObjectModifiedEvent events were not being
thrown every time a person is modified.  You would have to check the
schooltool source code for that.  As for figuring out exactly what was
changed, you could either update *all* the information all the time
(the easy way), or possibly compare the pre-modified and post-modified
object for changes.  I'm not sure exactly how the latter option would
work, but I think it has something to do with the ZODB?  I'm sure
schooltool folks can provide some better answers.

- Paul

On 6/11/07, Will Dickerson <wdickers at gmail.com> wrote:
> I subscribed a function to IObjectCreatedEvent for IPerson and it seems to
> work whenever a person is added. However when I do the same for
> IObjectModifiedEvent no event is raised when I edit a person. I can
> subscribe to changes in a person container, but then how can I know how it's
> been changed? There are two cases, when a person is deleted and when they
> are modified
>
>   <subscriber
>     for="schooltool.person.interfaces.IPerson
>
> zope.lifecycleevent.interfaces.IObjectModifiedEvent"
>     handler=".handler.newPersonHandler"
>   />
>


More information about the Schooltool-dev mailing list