Commit b89338ce authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* remove a hack to shorten portal types.

* add a TODO comment.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33893 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ef5fc931
...@@ -170,12 +170,11 @@ class EquivalenceTesterMixin: ...@@ -170,12 +170,11 @@ class EquivalenceTesterMixin:
decision_delivery = decision_movement.getDeliveryValue() decision_delivery = decision_movement.getDeliveryValue()
mapping = { mapping = {
'decision_url':decision_movement.absolute_url(), 'decision_url':decision_movement.absolute_url(),
# TODO we need a way to map the property name to the business word,
# eg. 'start_date' to 'Delivery Date' for trade etc.
'property_name':divergence_message.getProperty('tested_property'), 'property_name':divergence_message.getProperty('tested_property'),
'decision_value':h(divergence_message.getProperty('decision_value')), 'decision_value':h(divergence_message.getProperty('decision_value')),
# XXXXXX if we need such a 'short portal type' name, we need a way 'decision_type':decision_movement.getPortalType(),
# to define it.
'decision_type':decision_movement.getPortalType().replace(
'%s ' % decision_delivery.getPortalType(), ''),
'decision_title':h(decision_movement.getTitleOrId()), 'decision_title':h(decision_movement.getTitleOrId()),
'delivery_url':decision_delivery.absolute_url(), 'delivery_url':decision_delivery.absolute_url(),
'delivery_title':h(decision_delivery.getTitleOrId()), 'delivery_title':h(decision_delivery.getTitleOrId()),
......
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