Commit e09dfaba authored by Romain Courteaud's avatar Romain Courteaud

getVisibleAllowedContentTypeList returns list of string

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18831 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e265dc14
...@@ -78,7 +78,7 @@ if context.cb_dataValid:\n ...@@ -78,7 +78,7 @@ if context.cb_dataValid:\n
except AttributeError:\n except AttributeError:\n
error_message = N_(\'Sorry+you+can+not+paste+theses+Items+here\')\n error_message = N_(\'Sorry+you+can+not+paste+theses+Items+here\')\n
else:\n else:\n
allowed_type_list = [x.id for x in context.getVisibleAllowedContentTypeList()]\n allowed_type_list = [x for x in context.getVisibleAllowedContentTypeList()]\n
for portal_type in portal_type_list:\n for portal_type in portal_type_list:\n
if portal_type not in allowed_type_list:\n if portal_type not in allowed_type_list:\n
error_message = N_(\'Sorry+you+can+not+paste+theses+Items+here\')\n error_message = N_(\'Sorry+you+can+not+paste+theses+Items+here\')\n
......
680 681
\ No newline at end of file \ No newline at end of file
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