[Zope] ZClass acting up?

Erik Enge erik@src.no
22 May 2000 13:36:15 +0200


Hi,

I have discovered this extremely irritating "feature" with ZClasses.

Sorry for this long and rather ugly explanation, but I don't know what
the problem is, so it has to be like this:

Add test_product product in Control Panel - Product Management
	In test_product:
	Add a test_folder zclass with object manager as its base class
		In test_folder:
		Add test_project zclass with test_folder as its base class

	(be sure to enter all factories and press "change")

Now, enter your Zope tree (http://localhost/, for example) and do:

	Add a test_folder
		In test_folder:
		Add a test_project
			In test_project:
			Add a test_project

	The point here being to demonstrate that you can add
	recursively test_projects. Which is nice, I love it.. semantics
	looking nice and all :-).

Then, go back to the test_product, and in test_project add a Z Class
thats called test_projectteam, make object manager the base class.

And finally, enter the test_folder you created earlier and add a
test_project. Enter this project... now what do you see? Thats right,
your not able to add test_projects recursively any longer, but you can add
project_teams (which doesn't really make me all that happy).

Why is this? I want to be able to structure projects into sub projects
and be able to divide the project teams working on the different
projects. Does anyone know why this happens? And possibly how I can
achieve what I want?

-- 
 Erik Enge