<s> from django . views . generic . edit import CreateView , UpdateView , DeleteView <EOL> from django . views . generic . detail import DetailView <EOL> from django . core . urlresolvers import reverse_lazy , reverse <EOL> from django . contrib import messages <EOL> from django_tables2 . views import SingleTableView <EOL> from fabric_bolt . core . mixins . views import MultipleGroupRequiredMixin <EOL> from fabric_bolt . launch_window import models , tables , forms <EOL> class LaunchWindowList ( MultipleGroupRequiredMixin , SingleTableView ) : <EOL> group_required = [ '<STR_LIT>' , '<STR_LIT>' , ] <EOL> table_class = tables . LaunchWindowTable <EOL> model = models . LaunchWindow <EOL> class LaunchWindowDetail ( MultipleGroupRequiredMixin , DetailView ) : <EOL> group_required = [ '<STR_LIT>' , '<STR_LIT>' , ] <EOL> model = models . LaunchWindow <EOL> class LaunchWindowCreate ( MultipleGroupRequiredMixin , CreateView ) : <EOL> """<STR_LIT>""" <EOL> group_required = [ '<STR_LIT>' , '<STR_LIT>' , ] <EOL> model = models . LaunchWindow <EOL> form_class = forms . LaunchWindowCreateForm <EOL> template_name_suffix = '<STR_LIT>' <EOL> def form_valid ( self , form ) : <EOL> """<STR_LIT>""" <EOL> form_valid_from_parent = super ( LaunchWindowCreate , self ) . form_valid ( form ) <EOL> messages . success ( self . request , '<STR_LIT>' . format ( self . object ) ) <EOL> return form_valid_from_parent <EOL> def get_success_url ( self ) : <EOL> """<STR_LIT>""" <EOL> return reverse ( '<STR_LIT>' , kwargs = { '<STR_LIT>' : self . object . pk } ) <EOL> class LaunchWindowUpdate ( MultipleGroupRequiredMixin , UpdateView ) : <EOL> group_required = [ '<STR_LIT>' , ] <EOL> model = models . LaunchWindow <EOL> form_class = forms . LaunchWindowUpdateForm <EOL> template_name_suffix = '<STR_LIT>' <EOL> def form_valid ( self , form ) : <EOL> """<STR_LIT>""" <EOL> form_valid_from_parent = super ( LaunchWindowUpdate , self ) . form_valid ( form ) <EOL> messages . success ( self . request , '<STR_LIT>' . format ( self . object ) ) <EOL> return form_valid_from_parent <EOL> def get_success_url ( self ) : <EOL> """<STR_LIT>""" <EOL> return reverse ( '<STR_LIT>' , kwargs = { '<STR_LIT>' : self . object . pk } ) <EOL> class LaunchWindowDelete ( MultipleGroupRequiredMixin , DeleteView ) : <EOL> group_required = '<STR_LIT>' <EOL> model = models . LaunchWindow <EOL> success_url = reverse_lazy ( '<STR_LIT>' ) <EOL> def delete ( self , request , * args , ** kwargs ) : <EOL> messages . success ( self . request , '<STR_LIT>' . format ( self . get_object ( ) ) ) <EOL> return super ( LaunchWindowDelete , self ) . delete ( self , request , * args , ** kwargs ) </s>
