[Erp5-dev] allowed content type has None values
Jérôme Perrin
jerome at nexedi.com
Thu May 24 18:17:38 CEST 2007
Le jeudi 24 mai 2007 17:54, Jacek Medrzycki a écrit :
> I have found that in Products.ERP5Type.patches.CMFBTreeFolder, in
> CMFBTreeFolder_allowedContentTypes, the list of portal types contains
> None value, so the filter fails on typ.isConstructionAllowed(...)
>
> I've made small (and rather ugly ;) patch that filters out None value,
> and the site appears to work after applying this. However, I don't know
> why allowed content type list contains None. Is it becouse of the old
> site I had, or something is broken in ERP5? Did anybody have similar
> symptoms?
Yes, this happen if a type information A has in it's allowed_content_type a
type information B, but B does not exists in types tool
(ie /erp5/portal_types). For instance
http://svn.erp5.org/?view=rev&revision=14164 was to solve this problem.
This is a bug, but we keep this bug in the development branch for a while so
that developers have to fix misconfigurations on business templates ;)
Jérome
More information about the Erp5-dev
mailing list