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

« back to all changes in this revision

Viewing changes to grackle/server/model.py

  • Committer: William Grant
  • Date: 2012-01-22 08:24:27 UTC
  • Revision ID: william.grant@canonical.com-20120122082427-j5mqx7toukbji5t2
Parse out To, and lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
            {'date_created': datetime.datetime.utcnow().isoformat() + 'Z',
84
84
             'content': message,
85
85
             'from': parsed.get('From'),
 
86
             'to': parsed.get('To'),
86
87
             'subject': parsed.get('Subject'),
87
88
             'date': date.isoformat() if date is not None else None,
88
89
             'message_id': parsed.get('Message-ID'),
107
108
        else:
108
109
            raise AssertionError("Unsupported order.")
109
110
        pairs = self.archive_messages.get(
110
 
            archive_uuid, column_count=count+1,
 
111
            archive_uuid, column_count=count + 1,
111
112
            column_start=start, column_reversed=reversed).items()
112
113
        ids = [v for k, v in pairs]
113
114
        messages = self.messages.multiget(