ZPatterns Product distribution not showing up as a product?
Hi, If I try to distribute it and leave it set for "Allow redistribution". Its not showing up in the Zope products directory tree after I untar the 3 files into the file system products directory and restarting Zope. I have a Dataskin based ZClass, 2 Specialist, the default constructor forms. I'm using Zope 2.2.2 on win98 ZPatterns 4.3b2. Is this expected behaviour for a ttw product? It works if I export/import it. -Jimbo
jimbo wrote:
Hi, If I try to distribute it and leave it set for "Allow redistribution". Its not showing up in the Zope products directory tree after I untar the 3 files into the file system products directory and restarting Zope.
I have a Dataskin based ZClass, 2 Specialist, the default constructor forms. I'm using Zope 2.2.2 on win98 ZPatterns 4.3b2. Is this expected behaviour for a ttw product? It works if I export/import it.
This used to be really buggy and maybe it still is. The DC guys working on the PTK found and fixed some of the bugs but I don't know if they've landed in a Zope release yet. Maybe 2.2.3? Anyone got any definite knowledge? Chris
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
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
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: itamar@shtull-trauring.org Web: http://itamarst.org
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
Shane Hathaway wrote:
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.
Ah! That would be a very simple and elegant way of eliminating 'add-dropdown-box pollution', among other advantages. An excellent proposal, indeed. Michael Bernstein.
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
participants (6)
-
Chris Withers -
Itamar Shtull-Trauring -
jimbo -
Johan Carlsson -
Michael Bernstein -
Shane Hathaway