[Zope-CMF] Bitten by Types/Metaypes!

Jon Edwards jon@pcgs.freeserve.co.uk
Tue, 4 Sep 2001 12:33:49 +0100


When I'm adding an object to a folder, I'm trying to store the Type of the
folder - i.e. I've created Types (with the types-tool) from "Skinned Folder"
for "Hospital", "Doctor Practice", "Pharmacy", etc.

So in the add-method I pull the parentfolder's type, but all I can get is
either "Folder" or "Portal Folder", not the Type defined in the types-tool.

If I use "getTypeInfo().Type()" it gives me "Folder"
If I use "getTypeInfo().Metatype()" it gives me "Portal Folder"

...it doesn't even give "Skinned Folder", which is what I based my Types on
via the types-tool.

Am I missing something?

CMF 1.1, Zope 2.3.3

Cheers, Jon