Self-deletion of a Zclass instance
Hi, everybody. How can I set up a self-destruct method in a Zclass? I'm putting together a calendar of events that is editable by certain individuals, and it needs to handle the removal of events from the list. I currently have some code in a DTML document that handles the deletion, but I'd much rather simply allow a calendar entry to have a 'delete' method that does the appropriate stuff. Is this possible? (I've done quite a bit of Zclass work, and gone through the various tutorials and manuals, and haven't found anything appropriate. I certainly don't rule out the possibility that I've simply overlooked an obvious passage, and won't be offended by an 'RTFM' response, if it mentions which portion of the FM to look in...) --- Chris
Carlson, Christopher W. writes:
How can I set up a self-destruct method in a Zclass?
I'm putting together a calendar of events that is editable by certain individuals, and it needs to handle the removal of events from the list. I currently have some code in a DTML document that handles the deletion, but I'd much rather simply allow a calendar entry to have a 'delete' method that does the appropriate stuff. Is this possible? Zope objects are not active in itself. They need to be activated from outside.
But you can have a look at Xron. It allows you to schedule periodical actions, e.g. to call your DTML document... Dieter
participants (2)
-
Carlson, Christopher W. -
Dieter Maurer