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'))
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'))
def _checkParams(self): self.agent = LiveSyncAgent.find_one(id=request.view_args['agent_id'])
def _checkParams(self): self.agent = LiveSyncAgent.find_one(id=request.view_args['agent_id'])