[Erp5-dev] how to get base categories from type information

Jérôme Perrin jerome at nexedi.com
Mon Aug 14 17:38:49 CEST 2006


Le Lundi 14 Août 2006 16:25, Bartek Gorny a écrit :
> Hello
>
> Anybody knows how to do this: get a list of base categories for a
> portal_type from the Type Information?
>
> The point is to get something like what you can get from an instance
> (by object.getBaseCategoryList()), but not from an instance, but from
> a portal type definition - like collecting all property sheets hooked
> to it and adding base categories assigned from ZMI. I'm sure there is
> a way to do it, but can't figure out how. Can you help?

ERP5Type.getInstanceBaseCategoryList have been added very recently for this 
purpose, but this is still unstable API.

-- 
Jérome



More information about the Erp5-dev mailing list