Okay, I'm completely stuck on this issue of how to create container classes which can catalog the specific objects that are only available to that container (ie one ZClass inside another). Please excuse the attachment. I figure at 4K it's not much bigger than many messages here and should be middling-okay. If you're reeeeally curious and want to wade through the code, there it is.
I have a project in development right now that uses a ZClass based on ZCatalog and ObjectManager. Works great.
I just tried that. Maybe it was the inheritance order, but I couldn't get to any of the catalog management views. <checks something> Aha! Inherit ZCatalog, THEN ObjectManager. - create product "fooproduct" - create ZClass fooproduct/foocontainer from ZCatalog, ObjectManager - create ZClass fooproduct/foocontainer/foo from CatalogAware - visit fooproduct/foocontainer_factory and click "change" (probably un-necessary) - visit fooproduct/foocontainer/foo_factory and click "change" - visit fooproduct/foocontainer:permissions and change the permissions from "add foocontainers" (why is that there?) to "add foos". - visit fooproduct/foocontainer:subobjects and... Problem #1: I can't put "foo" up as a subobject of foocontainer. Why not? Problem #2: By hacking an index_html with a link to foo_addForm, I can add a foo (so why can't I put foo in the list of subobjects?). Cool. Unfortunately, this code in foo_add doesn't result in anything going in the catalog: <dtml-with "foo.createInObjectManager(REQUEST['id'], REQUEST)"> <dtml-call setCatalog(PARENTS[0],REQUEST)> <dtml-call index_object()> Changing the first argument to setCatalog doesn't make a shred of difference. Finally; Problem #3: "Find items to ZCatalog" in an instance of foocontainer doesn't permit me to add foos. Why not?
In it I have one ZClass that inherits from CatalogAware, and with some twiddling in the constructor methods instances of the CatalogAware classes are indexing themselves in the container ZClass just fine.
I don't suppose you're willing to HowTo that one? I'm trying to get a decent level of abstraction here by creating a Regards, Garth. -- <gtk@well.com>