Пример #1
0
 def _checkParams(self):
     self.agent = LiveSyncAgent.find_one(id=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'))
Пример #2
0
 def _checkParams(self):
     self.agent = LiveSyncAgent.find_one(id=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'))
Пример #3
0
 def _checkParams(self):
     self.agent = LiveSyncAgent.find_one(id=request.view_args['agent_id'])
Пример #4
0
 def _checkParams(self):
     self.agent = LiveSyncAgent.find_one(id=request.view_args['agent_id'])