~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Ian Booth
  • Date: 2011-04-19 15:10:32 UTC
  • mto: This revision was merged to the branch mainline in revision 12983.
  • Revision ID: ian.booth@canonical.com-20110419151032-3k424mlaz3o331in
Fix some javascript form isues

Show diffs side-by-side

added added

removed removed

Lines of Context:
517
517
        self.form_fields = self.form_fields.omit('subscribe_to_existing_bug')
518
518
        self.form_fields += formlib.form.Fields(subscribe_field)
519
519
 
520
 
#        security_related_field = Bool(
521
 
#            __name__='security_related',
522
 
#            title=_("This bug is a security vulnerability"),
523
 
#            required=False, default=False)
524
 
#
525
 
#        self.form_fields = self.form_fields.omit('security_related')
526
 
#        self.form_fields += formlib.form.Fields(security_related_field)
527
 
 
528
520
    def contextUsesMalone(self):
529
521
        """Does the context use Malone as its official bugtracker?"""
530
522
        if IProjectGroup.providedBy(self.context):
561
553
            # We're being called from the generic bug filing form, so
562
554
            # manually set the chosen distribution as the context.
563
555
            context = distribution
564
 
        elif IProjectGroup.providedBy(context):
565
 
            context = data['product']
566
556
        elif IMaloneApplication.providedBy(context):
567
557
            context = data['bugtarget']
568
558