Author: matevz
Date: Fri May 17 13:07:04 2013
New Revision: 1483784
URL: http://svn.apache.org/r1483784
Log:
Ref. #523 - user-friendlier activity messages for adding/removing relations
Modified:
bloodhound/trunk/bloodhound_relations/bhrelations/api.py
Modified: bloodhound/trunk/bloodhound_relations/bhrelations/api.py
URL:
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_relations/bhrelations/api.py?rev=1483784&r1=1483783&r2=1483784&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_relations/bhrelations/api.py (original)
+++ bloodhound/trunk/bloodhound_relations/bhrelations/api.py Fri May 17
13:07:04 2013
@@ -548,6 +548,8 @@ class TicketChangeRecordUpdater(Componen
else:
old_value = None
new_value = related_resource_name
+ description = 'Relation "%s"' % (
+ relation_system.render_relation_type(relation.type),)
db("""INSERT INTO ticket_change
(ticket, time, author, field, oldvalue, newvalue, product)
@@ -555,7 +557,7 @@ class TicketChangeRecordUpdater(Componen
(ticket_id,
when_ts,
relation.author,
- relation.type,
+ description,
old_value,
new_value,
product))