~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-23 05:09:45 UTC
  • Revision ID: william.grant@canonical.com-20120123050945-0qirjil4i8toqqr7
content -> raw

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
        data['headers'] = hdict
139
139
 
140
140
    if include_raw:
141
 
        data['content'] = message['content']
 
141
        data['raw'] = message['raw']
142
142
 
143
143
    return data
144
144
 
161
161
    def add_message(self, archive_uuid, message):
162
162
        message_uuid = uuid.uuid4()
163
163
        message_date, message_dict = _parse_message(message)
164
 
        message_dict['content'] = message
 
164
        message_dict['raw'] = message
165
165
        message_dict['date_created'] = (
166
166
            datetime.datetime.utcnow().isoformat() + 'Z')
167
167
        self.messages.insert(message_uuid, message_dict)