Thanks for your reply, yes that makes sense. I was somehow wondering if there wasn't a mechanism similar to the module mechanism already in place. The product class for example seems to have this kind of behaviour built in. Anyway, I'm going to write a template operator, I know how to do it.