예제 #1
0
파일: views.py 프로젝트: 0-T-0/amonone
	def get(self, alert_id):
		alert = alerts_model.get_by_id(alert_id)

		server = server_model.get_one()

	
		errors =  self.session.get('errors',None)
		form_data =  self.session.get('form_data',None)
		email_recepients = email_recepient_model.get_all()
		sms_recepients = sms_recepient_model.get_all()

		self.delete_session_key('errors')
		self.delete_session_key('form_data')

		self.render('alerts/edit_server_alert.html',
				alert=alert,
				email_recepients=email_recepients,
				sms_recepients=sms_recepients,
				process_metrics=process_metrics,
				server_metrics=server_metrics,
				common_metrics=common_metrics,
				errors=errors,
				form_data=form_data,
				server=server
		)
예제 #2
0
    def get(self):

        server = server_model.get_one()

        errors = self.session.get('errors', None)
        form_data = self.session.get('form_data', None)
        email_recepients = email_recepient_model.get_all()
        sms_recepients = sms_recepient_model.get_all()

        self.delete_session_key('errors')
        self.delete_session_key('form_data')

        self.render('alerts/add_process_alert.html',
                    email_recepients=email_recepients,
                    sms_recepients=sms_recepients,
                    process_metrics=process_metrics,
                    errors=errors,
                    form_data=form_data,
                    server=server)
예제 #3
0
    def get(self, alert_id):
        alert = alerts_model.get_by_id(alert_id)

        errors = self.session.get('errors', None)
        form_data = self.session.get('form_data', None)
        email_recepients = email_recepient_model.get_all()
        sms_recepients = sms_recepient_model.get_all()

        self.delete_session_key('errors')
        self.delete_session_key('form_data')

        self.render('alerts/edit_process_alert.html',
                    alert=alert,
                    email_recepients=email_recepients,
                    sms_recepients=sms_recepients,
                    process_metrics=process_metrics,
                    server_metrics=server_metrics,
                    common_metrics=common_metrics,
                    errors=errors,
                    form_data=form_data)
예제 #4
0
파일: views.py 프로젝트: 0-T-0/amonone
	def get(self):

		server = server_model.get_one()
		
		errors =  self.session.get('errors',None)
		form_data =  self.session.get('form_data',None)
		email_recepients = email_recepient_model.get_all()
		sms_recepients = sms_recepient_model.get_all()


		self.delete_session_key('errors')
		self.delete_session_key('form_data')

		self.render('alerts/add_process_alert.html',
				email_recepients=email_recepients,
				sms_recepients=sms_recepients,
				process_metrics=process_metrics,
				errors=errors,
				form_data=form_data,
				server=server
		)
예제 #5
0
파일: sms.py 프로젝트: yogaredhat/amonone
	def get(self, param=None):
		recepients = sms_recepient_model.get_all()
		self.render('settings/sms/test.html',
			recepients=recepients)
예제 #6
0
파일: sms.py 프로젝트: yogaredhat/amonone
	def get(self, param=None):
		details = sms_model.get()
		recepients = sms_recepient_model.get_all()
		self.render('settings/sms/sms.html', details=details,
			recepients=recepients)