Commit 824046f4 authored by Ayush Tiwari's avatar Ayush Tiwari

[erp5_core] Add titles, fix tests and add links for current value

parent 9cae9286
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
This URL script returns the URL for current value for the This URL script returns the URL for current value for the
properties in the Historical Comparison Diff. properties in the Historical Comparison Diff.
""" """
from Products.ERP5Type.Log import log
if brain is None: if brain is None:
brain = context brain = context
...@@ -9,11 +10,16 @@ if brain is None: ...@@ -9,11 +10,16 @@ if brain is None:
# parameter to the next view # parameter to the next view
path = brain.getProperty('path') path = brain.getProperty('path')
property_name = path.split('/')[2] property_name = path.split('/')[2]
log(context.aq_parent)
log(brain)
if url_dict: if url_dict:
return {'command': 'raw', return {'command': 'push_history',
'options': { 'options': {
'url': 'google.com' 'jio_key': context.getRelativeUrl(),
},
'view_kw': {
'jio_key': context.getRelativeUrl(),
'view': 'Base_viewCurrentValueForLargeText'
} }
} }
......
...@@ -16,6 +16,16 @@ ...@@ -16,6 +16,16 @@
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>encoding</string> </key> <key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value> <value> <string>UTF-8</string> </value>
...@@ -87,6 +97,10 @@ ...@@ -87,6 +97,10 @@
<key> <string>name</string> </key> <key> <string>name</string> </key>
<value> <string>Base_viewCurrentValueForLargeText</string> </value> <value> <string>Base_viewCurrentValueForLargeText</string> </value>
</item> </item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_view</string> </value>
</item>
<item> <item>
<key> <string>row_length</string> </key> <key> <string>row_length</string> </key>
<value> <int>4</int> </value> <value> <int>4</int> </value>
...@@ -97,12 +111,20 @@ ...@@ -97,12 +111,20 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string>View Current Value</string> </value>
</item> </item>
<item> <item>
<key> <string>unicode_mode</string> </key> <key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>update_action_title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
...@@ -16,6 +16,16 @@ ...@@ -16,6 +16,16 @@
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>encoding</string> </key> <key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value> <value> <string>UTF-8</string> </value>
...@@ -90,6 +100,10 @@ ...@@ -90,6 +100,10 @@
<key> <string>name</string> </key> <key> <string>name</string> </key>
<value> <string>Base_viewHistoricalComparisonDiffLinkList</string> </value> <value> <string>Base_viewHistoricalComparisonDiffLinkList</string> </value>
</item> </item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_view</string> </value>
</item>
<item> <item>
<key> <string>row_length</string> </key> <key> <string>row_length</string> </key>
<value> <int>4</int> </value> <value> <int>4</int> </value>
...@@ -100,12 +114,20 @@ ...@@ -100,12 +114,20 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string>Historical Differences</string> </value>
</item> </item>
<item> <item>
<key> <string>unicode_mode</string> </key> <key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>update_action_title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
</item> </item>
<item> <item>
<key> <string>selection_name</string> </key> <key> <string>selection_name</string> </key>
<value> <string></string> </value> <value> <string>historical_comparison_selection</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -16,6 +16,16 @@ ...@@ -16,6 +16,16 @@
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>encoding</string> </key> <key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value> <value> <string>UTF-8</string> </value>
...@@ -90,6 +100,10 @@ ...@@ -90,6 +100,10 @@
<key> <string>name</string> </key> <key> <string>name</string> </key>
<value> <string>Base_viewHistoricalComparisonDiffList</string> </value> <value> <string>Base_viewHistoricalComparisonDiffList</string> </value>
</item> </item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_view</string> </value>
</item>
<item> <item>
<key> <string>row_length</string> </key> <key> <string>row_length</string> </key>
<value> <int>4</int> </value> <value> <int>4</int> </value>
...@@ -100,12 +114,20 @@ ...@@ -100,12 +114,20 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string>Historical Differences</string> </value>
</item> </item>
<item> <item>
<key> <string>unicode_mode</string> </key> <key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>update_action_title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
</item> </item>
<item> <item>
<key> <string>selection_name</string> </key> <key> <string>selection_name</string> </key>
<value> <string></string> </value> <value> <string>historical_comparison_selection</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -16,6 +16,16 @@ ...@@ -16,6 +16,16 @@
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>encoding</string> </key> <key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value> <value> <string>UTF-8</string> </value>
...@@ -87,6 +97,10 @@ ...@@ -87,6 +97,10 @@
<key> <string>name</string> </key> <key> <string>name</string> </key>
<value> <string>Base_viewHistoricalComparisonValueList</string> </value> <value> <string>Base_viewHistoricalComparisonValueList</string> </value>
</item> </item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_view</string> </value>
</item>
<item> <item>
<key> <string>row_length</string> </key> <key> <string>row_length</string> </key>
<value> <int>4</int> </value> <value> <int>4</int> </value>
...@@ -97,12 +111,20 @@ ...@@ -97,12 +111,20 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string>Historical Differences</string> </value>
</item> </item>
<item> <item>
<key> <string>unicode_mode</string> </key> <key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>update_action_title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
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