~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/model/potmsgset.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-10-05 11:55:37 UTC
  • mfrom: (14090.2.4 longpoll-408-errors)
  • Revision ID: launchpad@pqm.canonical.com-20111005115537-u5ir9xz5s3g45sy2
[r=allenap][no-qa] Swallow 408 errors in the LongPoll javascript
        library.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from sqlobject import (
20
20
    ForeignKey,
 
21
    IntCol,
21
22
    SQLObjectNotFound,
22
23
    StringCol,
23
24
    )
138
139
        notNull=True)
139
140
    msgid_plural = ForeignKey(foreignKey='POMsgID', dbName='msgid_plural',
140
141
        notNull=False, default=DEFAULT)
 
142
    sequence = IntCol(dbName='sequence')
141
143
    commenttext = StringCol(dbName='commenttext', notNull=False)
142
144
    filereferences = StringCol(dbName='filereferences', notNull=False)
143
145
    sourcecomment = StringCol(dbName='sourcecomment', notNull=False)
1215
1217
 
1216
1218
    def setSequence(self, potemplate, sequence):
1217
1219
        """See `IPOTMsgSet`."""
 
1220
        self.sequence = sequence
1218
1221
        translation_template_item = TranslationTemplateItem.selectOneBy(
1219
1222
            potmsgset=self, potemplate=potemplate)
1220
1223
        if translation_template_item is not None: