Commit 77158e5b authored by Rafael Monnerat's avatar Rafael Monnerat

Use Embedded Images instead real images

parent 5c1c2ba0
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
\n \n
msg = \'Slide created.\'\n msg = \'Slide created.\'\n
def createImage(image_id):\n def createImage(image_id):\n
return context.newContent(portal_type = \'Image\',\n return context.newContent(portal_type = \'Embedded File\',\n
title = image_id,\n title = image_id,\n
id = image_id,\n id = image_id,\n
reference = image_id,\n reference = image_id,\n
...@@ -88,7 +88,8 @@ if slide_type in [\'Screenshot\', \'Illustration\']:\n ...@@ -88,7 +88,8 @@ if slide_type in [\'Screenshot\', \'Illustration\']:\n
\n \n
translateString = context.Base_translateString\n translateString = context.Base_translateString\n
portal_status_message = translateString(msg)\n portal_status_message = translateString(msg)\n
context.Base_redirect(\'TestPage_viewSlideCreator\', keep_items = dict(portal_status_message=portal_status_message))\n context.Base_redirect(\'TestPage_viewSlideCreator\', \n
keep_items = dict(portal_status_message=portal_status_message))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
15 16
\ 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