Commit b1499a70 authored by Nicolas Delaby's avatar Nicolas Delaby

It helps to display extra spaces in filled in values


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45688 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c2b34b0d
......@@ -2237,7 +2237,7 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
ob = types_tool.getTypeInfo(portal_type)
# check properties corresponds to what is defined in site
if ob is None:
raise ValueError, "Portal Type %s not found in site" %(portal_type,)
raise ValueError, "Portal Type %r not found in site" %(portal_type,)
prop_value = getattr(ob, self.class_property, ())
if allowed_type in prop_value:
if self.class_property not in portal_type:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment