~unity-2d-team/unity-2d/Shell-MultiMonitor

« back to all changes in this revision

Viewing changes to grackle/model.py

  • Committer: William Grant
  • Date: 2012-01-22 11:15:15 UTC
  • Revision ID: william.grant@canonical.com-20120122111515-87kkj7g8upjbhcmg
Include message-id in the result.

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
            'date': message.get('date'),
114
114
            'from': message.get('from'),
115
115
            'subject': message.get('subject'),
 
116
            'message-id': message.get('message-id'),
116
117
            }
117
118
 
118
119
    def get_messages(self, archive_uuid, order, count, start):
125
126
            column_start=start, column_reversed=reversed).items()
126
127
        ids = [v for k, v in pairs]
127
128
        messages = self.messages.multiget(
128
 
            ids, columns=['date', 'from', 'subject'])
 
129
            ids, columns=['date', 'from', 'subject', 'message-id'])
129
130
        actual_count = len(pairs)
130
131
        if len(pairs) > count:
131
132
            assert len(pairs) == count + 1