20 Apr
2006
20 Apr
'06
6:33 p.m.
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