# HG changeset patch # User Lennard de Rijk # Date 1233243521 0 # Node ID 17221b578fe7258a76384c56174077ad032190e7 # Parent 6acbbb68f032b82c79f470e0a079c6666d3a6ca1 prefixing the link_id of a notification with a t for time to agree to the new link_id pattern. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r 6acbbb68f032 -r 17221b578fe7 app/soc/logic/helper/notifications.py --- a/app/soc/logic/helper/notifications.py Thu Jan 29 09:33:50 2009 +0000 +++ b/app/soc/logic/helper/notifications.py Thu Jan 29 15:38:41 2009 +0000 @@ -143,7 +143,7 @@ 'subject': subject, 'message' : message, 'scope' : to_user, - 'link_id' :'%i' % (time.time()), + 'link_id' :'t%i' % (time.time()), 'scope_path' : to_user.link_id } diff -r 6acbbb68f032 -r 17221b578fe7 app/soc/views/models/notification.py --- a/app/soc/views/models/notification.py Thu Jan 29 09:33:50 2009 +0000 +++ b/app/soc/views/models/notification.py Thu Jan 29 15:38:41 2009 +0000 @@ -163,7 +163,7 @@ # get the current user current_user = user_logic.logic.getForCurrentAccount() - fields['link_id'] = '%i' % (time.time()) + fields['link_id'] = 't%i' % (time.time()) fields['scope'] = fields['to_user'] fields['from_user'] = current_user fields['scope_path'] = fields['to_user'].link_id