~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Graham Binns
  • Date: 2010-08-16 13:40:20 UTC
  • mto: This revision was merged to the branch mainline in revision 11383.
  • Revision ID: graham@canonical.com-20100816134020-53kt94vkh7l62eeg
Undid previous change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
from lp.bugs.interfaces.bugsubscription import IBugSubscription
19
19
from lp.registry.interfaces.person import validate_person
20
 
from lp.registry.interfaces.structuralsubscription import SubscriptionNotificationLevel
 
20
from lp.registry.interfaces.structuralsubscription import BugNotificationLevel
21
21
 
22
22
 
23
23
class BugSubscription(SQLBase):
34
34
        )
35
35
    bug = ForeignKey(dbName='bug', foreignKey='Bug', notNull=True)
36
36
    bug_notification_level = EnumCol(
37
 
        enum=SubscriptionNotificationLevel,
38
 
        default=SubscriptionNotificationLevel.COMMENTS,
 
37
        enum=BugNotificationLevel,
 
38
        default=BugNotificationLevel.COMMENTS,
39
39
        notNull=True)
40
40
    date_created = UtcDateTimeCol(notNull=True, default=UTC_NOW)
41
41
    subscribed_by = ForeignKey(