コード例 #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
ファイル: controllers.py プロジェクト: florv/indico-plugins
 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
ファイル: controllers.py プロジェクト: florv/indico-plugins
 def _checkParams(self):
     self.agent = LiveSyncAgent.find_one(id=request.view_args['agent_id'])