Commit a0b8e431 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_run_my_doc: handle on annotation split raise on Review_getAnnotationList

parent d1c747a4
...@@ -63,7 +63,12 @@ relative_url = context.getRelativeUrl()\n ...@@ -63,7 +63,12 @@ relative_url = context.getRelativeUrl()\n
counter = 0\n counter = 0\n
if len(annotation_list) > 0 and annotation_list[0] != "":\n if len(annotation_list) > 0 and annotation_list[0] != "":\n
for annotation in annotation_list:\n for annotation in annotation_list:\n
comment, locator, context_url, author, color = annotation[1:-1].split("},{");\n annotation_item = annotation[1:-1].split("},{")\n
if len(annotation_item) == 5:\n
comment, locator, context_url, author, color = annotation_item\n
else:\n
comment = "Failed to process: %s" % annotation\n
locator, context_url, author, color = "", "", "", ""\n
element_list.append(newTempBase(context.getPortalObject(), relative_url,\n element_list.append(newTempBase(context.getPortalObject(), relative_url,\n
title = comment,\n title = comment,\n
uid = str(counter),\n uid = str(counter),\n
......
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