Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joshua
erp5
Commits
a0b8e431
Commit
a0b8e431
authored
8 years ago
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_run_my_doc: handle on annotation split raise on Review_getAnnotationList
parent
d1c747a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/Review_getAnnotationList.xml
...portal_skins/erp5_run_my_doc/Review_getAnnotationList.xml
+6
-1
No files found.
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/Review_getAnnotationList.xml
View file @
a0b8e431
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment