[Zope] Automatically run an external method?

sean.upton@uniontrib.com sean.upton@uniontrib.com
Sat, 15 Dec 2001 15:37:11 -0800


I think what Bruce is asking is agnostic of this sort of thing, but I
imagine he's referring to a whole object.  If I understand correctly, this
sort of thing exists in the CMF to trigger workflow states.  Independent of
the CMF, though, what you would need (I think, not 100% sure) to do is wrap
object constructors & methods that change them, (for TTW adding of objects)
and use a custom PUT() and/or PUT_factory() in the ObjectManager-derived
container or your object itself (in order to change what happens when a file
is uploaded via FTP or DAV into that container); I haven't done this, but I
think there are those on this list that have done something like this.

If I was trying to figure out how this is done, I would try to ask folks who
have been into any workflow-related product code...

Sean

-----Original Message-----
From: Lennart Regebro [mailto:lennart@regebro.nu]
Sent: Saturday, December 15, 2001 2:36 PM
To: Bruce@EckelObjects.com; zope@zope.org
Subject: Re: [Zope] Automatically run an external method?


From: "Bruce Eckel" <Bruce@EckelObjects.com>
> Is it possible to automatically run an external method every time a
> file is saved? That is, is there some kind of file where I can say
> "when you're saved, call this method?"t

"Saved"? What do you mean? Saved to disk, or uploaded to Zope, or changing
the properties?



_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )