[Zope] Automatically adding properties (keywords) to folders

Dieter Maurer dieter at handshake.de
Thu Apr 20 14:33:49 EDT 2006


Terry Jones wrote at 2006-4-20 17:30 +0200:
>I'd like to set up a folder in Zope with the property that when an object
>is put into it, the object has a keyword added to it automatically (and
>when the object is moved out of the folder, the keyword is removed).

Thus, you want to customize the folder's "_setObject" and "_delObject".

Define your own "Folder" class deriving from Zope's standard 'Folder'
and reimplement "_setObject" and "_getObject" the way you like.

-- 
Dieter


More information about the Zope mailing list