Exemple #1
0
 def _checkParams(self):
     self.agent = LiveSyncAgent.get_one(request.view_args['agent_id'])
Exemple #2
0
 def _checkParams(self):
     self.agent = LiveSyncAgent.get_one(request.view_args['agent_id'])
     if self.agent.backend is None:
         flash(_('Cannot edit an agent that is not loaded'), 'error')
         return redirect(url_for('plugins.details', plugin='livesync'))
 def _process_args(self):
     self.agent = LiveSyncAgent.get_one(request.view_args['agent_id'])