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
alecs_myu
erp5
Commits
a37751c8
Commit
a37751c8
authored
Dec 21, 2015
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Base_getHistoricalComparisonDifferenceList: Carry on on getProperty failure.
parent
190e9fde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getHistoricalComparisonDifferenceList.xml
.../erp5_core/Base_getHistoricalComparisonDifferenceList.xml
+18
-4
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getHistoricalComparisonDifferenceList.xml
View file @
a37751c8
...
@@ -75,13 +75,27 @@ old = context.HistoricalRevisions[serial]\n
...
@@ -75,13 +75,27 @@ old = context.HistoricalRevisions[serial]\n
result = []\n
result = []\n
\n
\n
binary_data_explanation = Base_translateString("Binary data can\'t be displayed")\n
binary_data_explanation = Base_translateString("Binary data can\'t be displayed")\n
base_error_message = Base_translateString(\'(value retrieval failed)\')\n
\n
\n
for prop_dict in context.getPropertyMap():\n
for prop_dict in context.getPropertyMap():\n
prop = prop_dict[\'id\']\n
prop = prop_dict[\'id\']\n
current_value=context.getProperty(prop)\n
error = False\n
old_value = old.getProperty(prop)\n
try:\n
new_value = new_getProperty(prop)\n
current_value = context.getProperty(prop)\n
if new_value != old_value:\n
except TypeError:\n
error = True\n
current_value = base_error_message\n
try:\n
old_value = old.getProperty(prop)\n
except TypeError:\n
error = True\n
old_value = base_error_message\n
try:\n
new_value = new_getProperty(prop)\n
except TypeError:\n
error = True\n
new_value = base_error_message\n
if new_value != old_value or error:\n
# check if values are unicode convertible (binary are not)\n
# check if values are unicode convertible (binary are not)\n
if isinstance(new_value, (str, unicode)):\n
if isinstance(new_value, (str, unicode)):\n
try:\n
try:\n
...
...
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