sorry for bothering you again ..
I'ld like to release the CMFZPatternsPatch as Patch but still have troubles with that.
I have this in my __init__.py of the PatchProduct:
############################
### CMFCore.PortalFolder ###
############################
import Products.CMFCore.DynamicType
def PortalFolder__init__( self, id, title='' ):
CustomizerFolder.__init__(self,id)
self.id = id
self.title = title
import Products.CMFCore.PortalFolder
Products.CMFCore.PortalFolder.PortalFolder.__bases__ =
tuple([CustomizerFolder,Products.CMFCore.DynamicType.DynamicType])
Products.CMFCore.PortalFolder.PortalFolder.__init__ = PortalFolder__init__
reload(Products.CMFCore)
raise "testerror",str(Products.CMFCore.PortalFolder.PortalFolder.__bases__)
I tried this with and without the reload
and when I start zope to see the bases I get:
2001-07-12T12:59:44 ERROR(200) Zope Couldn't import Products.CMFZPatternsPatch
Traceback (innermost last):
File /usr/share/zope/lib/python/OFS/Application.py, line 528, in import_products
(Object: string)
File /usr/share/zope/lib/python/Products/CMFZPatternsPatch/__init__.py, line 140, in
?
testerror: (<extension class OFS.Folder.Folder at 83e9620>, <class
Products.CMFCore.DynamicType.DynamicType at 855e5f8>)
so .. the __bases__ don't get updated .. or did i miss something ??
thanks for your help
Ulrich Eck
net-labs
_______________________________________________
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )