[Zope-CMF] DefaultDublinCoreImpl no more auto catalog itself in
CMF-1.3beta1?
Stefan H. Holek
stefan@epy.co.at
Mon, 06 May 2002 12:21:33 +0200
That *is* the only solution. Look at the CMFArticle, it is derived from
both PortalFolder and PortalContent and does override manage_afterAdd to
call *both* base class methods. It overrides manage_beforeDelete as well to
not call both base class methods, but well... ;-)
Note you also have to get the base class order right, e.g.:
class Article(PortalFolder, PortalContent, DefaultDublinCoreImpl):
...
HTH,
Stefan
--On Sonntag, 05. Mai 2002 23:11 +0200 Luca Olivetti <luca@wetron.es> wrote:
> Dieter Maurer wrote:
>> Apparently, you get the one
>> of "PortalFolder" (which does not catalog). You need to
>> merge the two definitions (same for "manage_afterCone",
>> "manage_beforeDelete") (call them both) in your own implementation of
>> the methods.
>
> That's probably the only solution but it seems to me that it defeats the
> purpose of object oriented programming (or maybe is only python with
> multiple inheritance that's weird for an object pascal guy like me ;-)
>
> Bye
> --
> Luca Olivetti