示例#1
0
    def get(self):
        templatepath = os.path.dirname(__file__) + '/templates/'                     
        html = template.render(templatepath+'01uberheader.html', {'title':'Ubertool'})
        html = html + template.render(templatepath+'02uberintroblock_nomodellinks.html', {'title2':'Ecological Risk Web Applications','title3':''})
        html = html + template.render (templatepath + '03ubertext_links_left.html', {}) 

        #check to see if all web pages are serving
        http_html = http_check_pages.check_pages("eco")

        html = html + template.render(templatepath + '04ubertext_start.html', {
                'model_page':'',
                'model_attributes':'Ecological Web Page Integration Testing','text_paragraph':http_html})
        #html = html + http_html
        html = html + template.render(templatepath+'04uberoutput_end.html',{})
        html = html + template.render(templatepath+'06uberfooter.html', {'links': ''})
        self.response.out.write(html)
示例#2
0
import os
os.environ['DJANGO_SETTINGS_MODULE']='settings'
import http_check_pages
import webapp2
from google.appengine.api import mail


results_html = http_check_pages.check_pages("eco")
mail.send_mail("*****@*****.**", "*****@*****.**", "gae sendmail test", results_html)

#print("before")
#check_results = http_check_pages.check_pages("eco")
#print("after")