コード例 #1
0
ファイル: email.py プロジェクト: 0-T-0/amonone
	def get(self, param=None):
	  
		server_details = email_model.get_email_details()
		recepients = email_recepient_model.get_all()
		self.render('settings/email/email.html',
				server_details=server_details,
				recepients=recepients)
コード例 #2
0
    def get(self, param=None):

        server_details = email_model.get_email_details()
        recepients = email_recepient_model.get_all()
        self.render('settings/email/email.html',
                    server_details=server_details,
                    recepients=recepients)
コード例 #3
0
ファイル: email.py プロジェクト: 0-T-0/amonone
	def get(self):
		message = self.get_session_key_and_delete('message')

		recepients = email_recepient_model.get_all()
		self.render('settings/email/test.html',
			message=message,
			recepients=recepients)
コード例 #4
0
    def get(self):
        message = self.get_session_key_and_delete('message')

        recepients = email_recepient_model.get_all()
        self.render('settings/email/test.html',
                    message=message,
                    recepients=recepients)
コード例 #5
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
		)
コード例 #6
0
ファイル: views.py プロジェクト: Cloudxtreme/amonone-1
    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)
コード例 #7
0
ファイル: views.py プロジェクト: Cloudxtreme/amonone-1
    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)
コード例 #8
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
		)