[Zope] Overrinding a method which doesn't belong to a class

Max M maxmcorp@worldonline.dk
Tue, 17 Jul 2001 12:33:04 +0200


> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> Valérie Aulnette

> I am trying to override a method that doesn't belong
> to a class. I am doing :
>
> """
> from module import manage_addSomething
>
> def my_own(..):
>   self...
>
> import module
> module.manage_addSomething = my_own
> """

Why not just:

    manage_addSomething = my_own

Or is it a special case?

regards Max M

Max M. W. Rasmussen,    Denmark.   New Media Director
private: maxmcorp@worldonline.dk work: maxm@normik.dk
-----------------------------------------------------
Shipping software is an unnatural act