Exemple #1
0
 def _process(self):
     form = IPNetworkGroupForm(obj=self.network_group)
     if form.validate_on_submit():
         form.populate_obj(self.network_group)
         logger.info('Network group %s edited by %s', self.network_group, session.user)
         return jsonify_data(flash=False)
     return jsonify_form(form)
Exemple #2
0
 def _process(self):
     form = IPNetworkGroupForm(obj=self.network_group)
     if form.validate_on_submit():
         form.populate_obj(self.network_group)
         logger.info('Network group %s edited by %s', self.network_group, session.user)
         return jsonify_data(flash=False)
     return jsonify_form(form)
Exemple #3
0
 def _process(self):
     form = IPNetworkGroupForm()
     if form.validate_on_submit():
         network_group = IPNetworkGroup()
         form.populate_obj(network_group)
         db.session.add(network_group)
         db.session.flush()
         logger.info('Network group %s created by %s', network_group, session.user)
         return jsonify_data(flash=False)
     return jsonify_form(form)
Exemple #4
0
 def _process(self):
     form = IPNetworkGroupForm()
     if form.validate_on_submit():
         network_group = IPNetworkGroup()
         form.populate_obj(network_group)
         db.session.add(network_group)
         db.session.flush()
         logger.info('Network group %s created by %s', network_group, session.user)
         return jsonify_data(flash=False)
     return jsonify_form(form)
Exemple #5
0
 def _process_POST(self):
     db.session.delete(self.network_group)
     logger.info('Network group %s deleted by %s', self.network_group,
                 session.user)
     return jsonify_data(flash=False)
Exemple #6
0
 def _process_POST(self):
     db.session.delete(self.network_group)
     logger.info('Network group %s deleted by %s', self.network_group, session.user)
     return jsonify_data(flash=False)