Exemple #1
0
 def _process_args(self):
     self.agent = LiveSyncAgent.get_or_404(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'))
Exemple #2
0
 def _process_args(self):
     self.agent = LiveSyncAgent.get_or_404(request.view_args['agent_id'])