Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
a37751c8
Commit
a37751c8
authored
9 years ago
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Base_getHistoricalComparisonDifferenceList: Carry on on getProperty failure.
parent
190e9fde
pyodide
bt5_config
bt5_lang
bt5_package
business_commit
business_manager
business_template_reexport
cat_old_state
catalog_prep
catalog_tool_callable_fix
commit_tool
constraint
erp5_activity_process_timer
erp5_catalog
erp5_catalog_final
erp5_catalog_rebase
erp5_catalog_transition
erp5_diff
erp5_folder_create
erp5_history_blame
erp5_multiple_selection_conflict
erp5_standard_property
fix_test
historical_revision
history_diff
listbox_url
master
master_old
multiple_catalog
notebook_export_import
notebook_upload_html
notebook_view
performance
submodule_support
No related merge requests found
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
result = []\n
\n
binary_data_explanation = Base_translateString("Binary data can\'t be displayed")\n
base_error_message = Base_translateString(\'(value retrieval failed)\')\n
\n
for prop_dict in context.getPropertyMap():\n
prop = prop_dict[\'id\']\n
current_value=context.getProperty(prop)\n
old_value = old.getProperty(prop)\n
new_value = new_getProperty(prop)\n
if new_value != old_value:\n
error = False\n
try:\n
current_value = context.getProperty(prop)\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
if isinstance(new_value, (str, unicode)):\n
try:\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