~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/bug.py

Merged rocketfuel into trivial.

Show diffs side-by-side

added added

removed removed

Lines of Context:
849
849
        data = dict(data)
850
850
 
851
851
        # We handle privacy changes by hand instead of leaving it to
852
 
        # the usual machinery because we must use
853
 
        # bug.setPrivacyAndSecurityRelated() to ensure auditing information is
854
 
        # recorded.
 
852
        # the usual machinery because we must use bug.setPrivate() to
 
853
        # ensure auditing information is recorded.
855
854
        bug = self.context.bug
856
855
        bug_before_modification = Snapshot(
857
856
            bug, providing=providedBy(bug))
859
858
        user_will_be_subscribed = (
860
859
            private and bug.getSubscribersForPerson(self.user).is_empty())
861
860
        security_related = data.pop('security_related')
862
 
        user = getUtility(ILaunchBag).user
863
 
        (private_changed, security_related_changed) = (
864
 
            bug.setPrivacyAndSecurityRelated(private, security_related, user))
 
861
        private_changed = bug.setPrivate(
 
862
            private, getUtility(ILaunchBag).user)
 
863
        security_related_changed = bug.setSecurityRelated(security_related)
865
864
        if private_changed or security_related_changed:
866
865
            changed_fields = []
867
866
            if private_changed: