~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/model/branchsubscription.py

  • Committer: Brad Crittenden
  • Date: 2010-07-27 19:17:43 UTC
  • mto: (7675.745.73 launchpad)
  • mto: This revision was merged to the branch mainline in revision 11319.
  • Revision ID: bac@canonical.com-20100727191743-3p0dky6ist7q9b6n
Destroy PRIVATE_MEMBERSHIP teams and remove them from the face of the Earth.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from lp.code.interfaces.branch import IBranchNavigationMenu
22
22
from lp.code.interfaces.branchtarget import IHasBranchTarget
23
23
from lp.code.security import BranchSubscriptionEdit
24
 
from lp.registry.interfaces.person import (
25
 
    validate_person_not_private_membership)
 
24
from lp.registry.interfaces.person import validate_person
26
25
 
27
26
 
28
27
class BranchSubscription(SQLBase):
34
33
 
35
34
    person = ForeignKey(
36
35
        dbName='person', foreignKey='Person',
37
 
        storm_validator=validate_person_not_private_membership, notNull=True)
 
36
        storm_validator=validate_person, notNull=True)
38
37
    branch = ForeignKey(dbName='branch', foreignKey='Branch', notNull=True)
39
38
    notification_level = EnumCol(enum=BranchSubscriptionNotificationLevel,
40
39
                                 notNull=True, default=DEFAULT)
44
43
                                 notNull=True, default=DEFAULT)
45
44
    subscribed_by = ForeignKey(
46
45
        dbName='subscribed_by', foreignKey='Person',
47
 
        storm_validator=validate_person_not_private_membership, notNull=True)
 
46
        storm_validator=validate_person, notNull=True)
48
47
 
49
48
    @property
50
49
    def target(self):