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:
decision_delivery = decision_movement.getDeliveryValue()
mapping = {
'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'),
'decision_value':h(divergence_message.getProperty('decision_value')),
# XXXXXX if we need such a 'short portal type' name, we need a way
# to define it.
'decision_type':decision_movement.getPortalType().replace(
'%s ' % decision_delivery.getPortalType(), ''),
'decision_type':decision_movement.getPortalType(),
'decision_title':h(decision_movement.getTitleOrId()),
'delivery_url':decision_delivery.absolute_url(),
'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