Re: [Zope-dev] Patching Zope Products .. next Question

2001-07-12 Thread Ulrich Eck
Would this approach be appropriate? http://dev.zope.org/Members/Caseman/Dynamic_HotFix_News/Dynamic_Hotfix You can hotpatch the __bases__ attribute of the derived class. ok .. I tried several different versions of patching .. 1st Try: Created a new class in the patch that subclassed

[Zope-dev] Patching Zope Products .. next Question

2001-07-11 Thread Ulrich Eck
can I do this with: -- import Products.CMFCore.PortalContent define myclass here InitializeClass(myclass) Products.CMFCore.PortalContent.PortalContent = myclass -- ok this works but there is another tricky thing now ... I need to patch two products: CMFCore and CMFDefault. first i

Re: [Zope-dev] Patching Zope Products .. next Question

2001-07-11 Thread R. David Murray
On Wed, 11 Jul 2001, Ulrich Eck wrote: the CMFDefault.Document for example is still subclassed from CMFCore.PortalContent (the default) and therefore doesn't behave like a dataskin .. any ideas ? You can hotpatch the __bases__ attribute of the derived class. --RDM

Re: [Zope-dev] Patching Zope Products .. next Question

2001-07-11 Thread marc lindahl
Would this approach be appropriate? http://dev.zope.org/Members/Caseman/Dynamic_HotFix_News/Dynamic_Hotfix From: Ulrich Eck [EMAIL PROTECTED] Date: Wed, 11 Jul 2001 19:33:15 +0200 To: ZOPE-DEV Mailingliste [EMAIL PROTECTED] Subject: [Zope-dev] Patching Zope Products .. next Question can