Re: [Zope] Zclass inheritence
OK, I've found that this may be a bug. You can't subclass ZClasses across products. Sorry. I have no "esimated time to resolution" for this either. For now, you should be able to create a subclass of STX_Document inside the product to which it belongs and work from there. John Morton wrote: ZClass based products already present are webDirectory (my own creation) and STX_Document. I create a product and add a vanilla ZClass to it, then create another product and add a ZClass. In that dialog I put Catalog Aware across, then DTML method, then I drop DTML method. The Base class list contains the same selection of bases - no Zclasses among them. Same deal under 2.1.4. I think debuging mode is operating on the both of them, for what it's worth. Which bit of code should I start looking through, first? :-) -- Chris McDonough Digital Creations Publishers of Zope - http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zclass inheritence
What does a product need to do in order to be a base class for a ZClass? Can another Zclass act as a base class for a ZClass? If not, why not? John ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Zclass inheritence
What does a product need to do in order to be a base class for a ZClass? It needs contain a class that is registered as a base class in the product's __init__.py "initialize()" method via "context.registerBaseClass()" e.g. context.registerBaseClass(ZCatalog.ZCatalog) See lib/python/Products/ZCatalog/__init__.py for an example... Can another Zclass act as a base class for a ZClass? If not, why not? Yep. Try it. :-) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )