Re: [Zope-dev] Local Factories in Products
Michael Bernstein wrote: Ah! That would be a very simple and elegant way of eliminating 'add-dropdown-box pollution', among other advantages. An excellent proposal, indeed. So, how to go about getting it implemented? cheers, Chris ___ 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 )
Re: [Zope-dev] Local Factories in Products
Johan Carlsson wrote: In ZClasses it is possible to control where a ZClass instance should be permitted to be added, in other words show up in the factory listing in a ObjectManagers manage_main view. Didn't Itamar have a proposal/project on this? How did it work out? cheers, Chris ___ 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 )
Re: [Zope-dev] Local Factories in Products
Chris Withers wrote: In ZClasses it is possible to control where a ZClass instance should be permitted to be added, in other words show up in the factory listing in a ObjectManagers manage_main view. Didn't Itamar have a proposal/project on this? It's still unimplemented - you can view the details at http://dev.zope.org/Wikis/DevSite/Proposals/RestrictedCreation, and there's some implementation suggestions from Jim Fulton in the discussion area. -- Email: [EMAIL PROTECTED] Web: http://itamarst.org ___ 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 )
Re: [Zope-dev] Local Factories in Products
Itamar Shtull-Trauring wrote: Chris Withers wrote: In ZClasses it is possible to control where a ZClass instance should be permitted to be added, in other words show up in the factory listing in a ObjectManagers manage_main view. Didn't Itamar have a proposal/project on this? It's still unimplemented - you can view the details at http://dev.zope.org/Wikis/DevSite/Proposals/RestrictedCreation, and there's some implementation suggestions from Jim Fulton in the discussion area. I think the point was missed slightly in the discussion. Right now containers can limit what kinds of objects they can contain. It should also be possible for objects to limit what kinds of containers can contain them. Shane ___ 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 )
[Zope-dev] Local Factories in Products
Zopers, In ZClasses it is possible to control where a ZClass instance should be permitted to be added, in other words show up in the factory listing in a ObjectManagers manage_main view. (I this correct by the way?) What I need to do is someway restrict in what Containers (myContainer subclass od ObjectManage ) my Zope Product Instances (myClass) should be abled to be added (show up in the factory list). When registerClass "myClass" in the initialize method of __init__.py it seems that the "myClass" gets addable everywhere. I have temporary solved this by removing the objects registration from the initialize method and adding manual add factories in the myContainer. This is bad though because the meta_types doesn't get registered and maybe some other problems as well. So how could I control dependencies for adding Zope Classes in other Zope Classes? Regards, Johan Carlsson ___ 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 )