# HG changeset patch # User Julien Cristau # Date 1424173362 -3600 # Node ID 5c2a4a0a8dbd263cada54cbed8d10af1918d3a94 # Parent b2f7f03f10b30b754a2943afbeb33ef90401c877 [entities] return the entity itself from notification_references if the view uses a random message-id Useful for entity update notifications to reference the entity creation message. diff -r b2f7f03f10b3 -r 5c2a4a0a8dbd entities/adapters.py --- a/entities/adapters.py Tue Feb 17 12:35:58 2015 +0100 +++ b/entities/adapters.py Tue Feb 17 12:42:42 2015 +0100 @@ -78,6 +78,8 @@ itree = self.entity.cw_adapt_to('ITree') if itree is not None: return itree.path()[:-1] + if view.msgid_timestamp: + return (self.entity.eid,) return ()