~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/team.py

  • Committer: Steve Kowalik
  • Date: 2011-08-06 08:00:21 UTC
  • mto: This revision was merged to the branch mainline in revision 13626.
  • Revision ID: stevenk@ubuntu.com-20110806080021-q6oakfd5b0wa5ffn
Mailing lists are created automatically, so remove 'request' and 'apply' from the UI.

Show diffs side-by-side

added added

removed removed

Lines of Context:
572
572
        """
573
573
        if not self.list_can_be_requested:
574
574
            self.addError(
575
 
                "You cannot request a new mailing list for this team.")
 
575
                "You cannot create a new mailing list for this team.")
576
576
 
577
 
    @action('Apply for Mailing List', name='request_list_creation',
 
577
    @action('Create new Mailing List', name='request_list_creation',
578
578
            validator=request_list_creation_validator)
579
579
    def request_list_creation(self, action, data):
580
580
        """Creates a new mailing list."""
581
581
        getUtility(IMailingListSet).new(self.context)
582
582
        self.request.response.addInfoNotification(
583
 
            "Mailing list requested and queued for approval.")
 
583
            "Launchpad will now add a mailing list to this team. You "
 
584
            "should recieve an email confirmation in a few minutes.")
584
585
        self.next_url = canonical_url(self.context)
585
586
 
586
587
    def deactivate_list_validator(self, action, data):