Commit dbd8adad authored by Klaus Wölfel's avatar Klaus Wölfel

[erp5_item] fix listbox url of tracking view with renderjs ui

parent be85ee02
return '%s/view?selection_name=%s&selection_index=%s' % (
brain.url,
selection_name,
selection)
#return brain.url
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>brain, selection, selection_name, *args, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Brain_getItemExplanationUrl</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -10,8 +10,8 @@ kw.setdefault('sort_on', (('date', 'ascending',),))
history_list = []
for brain in method(aggregate_uid=context.getUid(), **kw):
history = newTempBase(context, str(len(history_list)))
explanation = brain.getExplanationValue()
history = newTempBase(explanation.getParentValue(), explanation.getId())
date = brain.getDate()
history.edit(
date=date,
......@@ -22,7 +22,6 @@ for brain in method(aggregate_uid=context.getUid(), **kw):
explanation=explanation.getTitle(),
translated_portal_type=explanation.getTranslatedPortalType(),
quantity=explanation.getQuantity(),
url=explanation.absolute_url(),
# item_quantity=context.getQuantity(at_date=date),
variation_category_item_list=[x[0] for x in explanation.getVariationCategoryItemList()],
simulation_state=explanation.getTranslatedSimulationStateTitle(),
......
......@@ -14,7 +14,6 @@
<string>list_method</string>
<string>sort_columns</string>
<string>title</string>
<string>url_columns</string>
</list>
</value>
</item>
......@@ -163,53 +162,6 @@
<key> <string>title</string> </key>
<value> <string>Item Tracking</string> </value>
</item>
<item>
<key> <string>url_columns</string> </key>
<value>
<list>
<tuple>
<string>uid</string>
<string>Brain_getItemExplanationUrl</string>
</tuple>
<tuple>
<string>explanation</string>
<string>Brain_getItemExplanationUrl</string>
</tuple>
<tuple>
<string>translated_portal_type</string>
<string>Brain_getItemExplanationUrl</string>
</tuple>
<tuple>
<string>date</string>
<string>Brain_getItemExplanationUrl</string>
</tuple>
<tuple>
<string>node_title</string>
<string>Brain_getItemExplanationUrl</string>
</tuple>
<tuple>
<string>source_title</string>
<string>Brain_getItemExplanationUrl</string>
</tuple>
<tuple>
<string>section_title</string>
<string>Brain_getItemExplanationUrl</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Brain_getItemExplanationUrl</string>
</tuple>
<tuple>
<string>variation_category_item_list</string>
<string>Brain_getItemExplanationUrl</string>
</tuple>
<tuple>
<string>simulation_state</string>
<string>Brain_getItemExplanationUrl</string>
</tuple>
</list>
</value>
</item>
</dictionary>
</value>
</item>
......
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