~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/blueprints/model/specificationmessage.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-22 04:08:17 UTC
  • mfrom: (14564.2.1 megalint-8)
  • Revision ID: launchpad@pqm.canonical.com-20111222040817-zx0jfft9hedsc8he
[r=jtv][no-qa] Lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
__metaclass__ = type
13
13
    BoolCol,
14
14
    ForeignKey,
15
15
    )
16
 
from storm.store import Store
17
16
from zope.interface import implements
18
17
 
19
18
from canonical.database.sqlbase import SQLBase
49
48
        """See ISpecificationMessageSet."""
50
49
        msg = Message(
51
50
            owner=owner, rfc822msgid=make_msgid('blueprint'), subject=subject)
52
 
        chunk = MessageChunk(message=msg, content=content, sequence=1)
53
 
        specmsg = SpecificationMessage(specification=spec, message=msg)
54
 
        return specmsg
 
51
        MessageChunk(message=msg, content=content, sequence=1)
 
52
        return SpecificationMessage(specification=spec, message=msg)
55
53
 
56
54
    def get(self, specmessageid):
57
55
        """See ISpecificationMessageSet."""