@blueprint.route('<STR_LIT>', methods=['<STR_LIT:GET>', '<STR_LIT:POST>'])<EOL>@login_required<EOL>@register_breadcrumb(blueprint, '<STR_LIT>', _('<STR_LIT>'))<EOL>def new_member(group_id):
group = Group.query.get_or_404(group_id)<EOL>if group.can_invite_others(current_user):<EOL><INDENT>form = NewMemberForm()<EOL>if form.validate_on_submit():<EOL><INDENT>emails = filter(None, form.data['<STR_LIT>'].splitlines())<EOL>group.invite_by_emails(emails)<EOL>flash(_('<STR_LIT>'), '<STR_LIT:success>')<EOL>return redirect(url_for('<STR_LIT>', group_id=group.id))<EOL><DEDENT>return render_template(<EOL>"<STR_LIT>",<EOL>group=group,<EOL>form=form<EOL>)<EOL><DEDENT>flash(<EOL>_(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>',<EOL>group_name=group.name<EOL>),<EOL>'<STR_LIT:error>'<EOL>)<EOL>return redirect(url_for('<STR_LIT>'))<EOL>
Add (invite) new member.