Switch to unified view

a/Allura/allura/model/notification.py b/Allura/allura/model/notification.py
...
...
149
                  serializer='pickle')
149
                  serializer='pickle')
150
150
151
    @classmethod
151
    @classmethod
152
    def send_digest(self, user_id, from_address, subject, notifications,
152
    def send_digest(self, user_id, from_address, subject, notifications,
153
                    reply_to_address=None):
153
                    reply_to_address=None):
154
        if not notifications: return
154
        if reply_to_address is None:
155
        if reply_to_address is None:
155
            reply_to_address = from_address
156
            reply_to_address = from_address
156
        text = [ 'Digest of %s' % subject ]
157
        text = [ 'Digest of %s' % subject ]
157
        for n in notifications:
158
        for n in notifications:
158
            text.append('From: %s' % n.from_address)
159
            text.append('From: %s' % n.from_address)
...
...
171
                'text':text},
172
                'text':text},
172
                  serializer='pickle')
173
                  serializer='pickle')
173
174
174
    @classmethod
175
    @classmethod
175
    def send_summary(self, user_id, from_address, subject, notifications):
176
    def send_summary(self, user_id, from_address, subject, notifications):
177
        if not notifications: return
176
        text = [ 'Digest of %s' % subject ]
178
        text = [ 'Digest of %s' % subject ]
177
        for n in notifications:
179
        for n in notifications:
178
            text.append('From: %s' % n.from_address)
180
            text.append('From: %s' % n.from_address)
179
            text.append('Subject: %s' % (n.subject or '(no subject)'))
181
            text.append('Subject: %s' % (n.subject or '(no subject)'))
180
            text.append('Message-ID: %s' % n._id)
182
            text.append('Message-ID: %s' % n._id)