Re[2]: [Zope-CMF] Re: Overriding title from DefaultDublinCoreImpl

Florent Guillaume fg@nuxeo.com
Thu, 25 Jul 2002 16:43:20 +0000 (UTC)


Rainer Thaden  <thadi@gmx.de> wrote:
> O.K. What i'm trying to do right now is to develop a new class
> LocDefaultDublinCoreImpl which is derived from LocalPropertyManager
> and DefaultDublinCoreImpl. It just overrides the metadata attributes
> and methods and uses localized ones instead. I can use this as a base
> class (if it works) instead of overriding the DublinCore methods in
> every class. 
> 
> Are there some complications to be expected?

No, I don't think so.

> When i override a method and add a new parameter, i think i would have
> to set the added parameter as None by default, so that if someone
> calls the method in the 'old style' it doesn't fail with e.g.
> 'expected 3 params, only 2 passed'.
> 
> Correct?

Yes, that's the way to do it.

Florent
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com