Commit 21964c3b authored by Ivan Tyagov's avatar Ivan Tyagov

Without content type no way to determine target format list.

parent d3ef9f3f
...@@ -68,6 +68,9 @@ portal = context.getPortalObject()\n ...@@ -68,6 +68,9 @@ portal = context.getPortalObject()\n
content_type = context.getContentType()\n content_type = context.getContentType()\n
\n \n
def getTargetFormatItemList(content_type):\n def getTargetFormatItemList(content_type):\n
# without content type no wayto determine target format\n
if content_type is None:\n
return []\n
format_list = []\n format_list = []\n
output_content_type_list = []\n output_content_type_list = []\n
for obj in portal.portal_transforms.objectValues():\n for obj in portal.portal_transforms.objectValues():\n
...@@ -92,7 +95,6 @@ def getTargetFormatItemList(content_type):\n ...@@ -92,7 +95,6 @@ def getTargetFormatItemList(content_type):\n
getTargetFormatItemList = CachingMethod(getTargetFormatItemList,\n getTargetFormatItemList = CachingMethod(getTargetFormatItemList,\n
id=\'Base_getTargetFormatItemList\',\n id=\'Base_getTargetFormatItemList\',\n
cache_factory=\'erp5_ui_long\')\n cache_factory=\'erp5_ui_long\')\n
\n
return getTargetFormatItemList(content_type)\n return getTargetFormatItemList(content_type)\n
</string> </value> </string> </value>
</item> </item>
......
1249 1250
\ 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