~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/model/bugmessage.py

  • Committer: Francis J. Lacoste
  • Date: 2011-04-27 21:40:03 UTC
  • mto: This revision was merged to the branch mainline in revision 12971.
  • Revision ID: francis.lacoste@canonical.com-20110427214003-iiqhcyyswppyqjsx
Change the default timeout to production value, improved options documentation and use only one bin above timeout value.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    SQLBase,
22
22
    sqlvalues,
23
23
    )
24
 
from lp.services.messages.model.message import (
 
24
from canonical.launchpad.database.message import (
25
25
    Message,
26
26
    MessageChunk,
27
27
    )
29
29
    IBugMessage,
30
30
    IBugMessageSet,
31
31
    )
32
 
from lp.registry.interfaces.person import validate_public_person
33
32
 
34
33
 
35
34
class BugMessage(SQLBase):
47
46
    remote_comment_id = StringCol(notNull=False, default=None)
48
47
    # -- The index of the message is cached in the DB.
49
48
    index = IntCol(notNull=True)
50
 
    # -- The owner, cached from the message table using triggers.
51
 
    owner = ForeignKey(dbName='owner', foreignKey='Person',
52
 
        storm_validator=validate_public_person, notNull=False)
53
49
 
54
50
    def __repr__(self):
55
51
        return "<BugMessage at 0x%x message=%s index=%s>" % (