示例#1
0
      def get(self):
	global My_Global_DRL
	DRL_num = My_Global_DRL
	global My_Global_NDRL
	NDRL_num = My_Global_NDRL
	global My_Units_Conversion
	my_unit_conversion = My_Units_Conversion
	global My_local_DRL
	local_DRL = My_local_DRL

	HTML = HTML_snip()
	DRL_stats = Stats(DRL_num)
	DRL_Histo = HT(DRL_num, NDRL_num,my_unit_conversion,local_DRL)
	#self.response.headers['Content-Type'] = 'text/plain'

        self.response.out.write(HTML.header("Analysis","DataEntry", "analysis"))


        self.response.out.write(HTML.body_header())
#	data = "true"

 	self.response.out.write(HTML.calc_header())

	HTML_bits = DRL_Histo.data_table()

#	if data == "true":
	 #HTML_bits = DRL_Histo.data_table()
	HTML_bits_count = len(HTML_bits)
	for item in range(HTML_bits_count):
         self.response.out.write(HTML_bits[item])
        self.response.out.write(HTML.footer)
示例#2
0
    def get(self):
        global My_Global_DRL
        DRL_num = My_Global_DRL
        global My_Global_NDRL
        NDRL_num = My_Global_NDRL
        global My_Units_Conversion
        my_unit_conversion = My_Units_Conversion
        global My_local_DRL
        local_DRL = My_local_DRL

        HTML = HTML_snip()
        DRL_stats = Stats(DRL_num)
        DRL_Histo = HT(DRL_num, NDRL_num, my_unit_conversion, local_DRL)
        #self.response.headers['Content-Type'] = 'text/plain'

        self.response.out.write(
            HTML.header("Analysis", "DataEntry", "analysis"))

        self.response.out.write(HTML.body_header())
        #	data = "true"

        self.response.out.write(HTML.calc_header())

        HTML_bits = DRL_Histo.data_table()

        #	if data == "true":
        #HTML_bits = DRL_Histo.data_table()
        HTML_bits_count = len(HTML_bits)
        for item in range(HTML_bits_count):
            self.response.out.write(HTML_bits[item])
        self.response.out.write(HTML.footer)
示例#3
0
    def get(self):
        global My_Global_DRL
        DRL_num = My_Global_DRL
        global My_Global_NDRL
        NDRL_num = My_Global_NDRL
        global My_local_DRL
        local_DRL = My_local_DRL
        global My_Units_Conversion
        Units_Conversion = My_Units_Conversion

        HTML = HTML_snip()
        DRL_stats = Stats(DRL_num)
        DRL_Histo = HT(DRL_num, NDRL_num, Units_Conversion, local_DRL)
        #Anlysis_stats = Dispatch
        number_of_points = len(DRL_num)

        #self.response.headers['Content-Type'] = 'text/plain'

        self.response.out.write(HTML.header("Results", "DataEntry", "results"))

        self.response.out.write(HTML.body_header())
        # This has now output the menu up to the point at which we insert the actual content

        self.response.out.write(HTML.calc_header())
        #  Need to put the input output result header here

        #	self.response.out.write(HTML.data_entry_form_1(NDRL_num))
        #	if number_of_points > 1:
        #	 for item in DRL_num:
        #		self.response.out.write('%s\n' % item)
        #	self.response.out.write(HTML.data_entry_form_2())

        self.response.out.write(HTML.openResultContainer)
        if number_of_points > 1:
            HTML_bits = DRL_Histo.quick_results()

            # This bit is the results and can be included in a separate page
            HTML_bits_count = len(HTML_bits)
            for item in range(HTML_bits_count):
                self.response.out.write(HTML_bits[item])

        else:
            self.response.out.write("""<div class="Result">""")
            self.response.out.write(
                'No data has been entered yet! <br>  Copy and paste data or enter directly in the box to the left using a new line for each data point.<br> When you are done click the calculate button.<br>  This page will give you a summary of your data.  <br>Go to the analysis tab for a detailed breakdown of your data. <br> You may edit data points directly and use calculate to update the results. <br>  Go to the sample tab to use pre-set data. '
            )
            self.response.out.write("""</div>""")

# This is the data entry form. Its position is determined by stylesheet parameters
        self.response.out.write(HTML.closeResultContainer)

        self.response.out.write(HTML.footer)
示例#4
0
    def get(self):
        global My_Global_DRL
	DRL_num = My_Global_DRL
	global My_Global_NDRL
	NDRL_num = My_Global_NDRL
	global My_local_DRL
	local_DRL = My_local_DRL
	global My_Units_Conversion
	Units_Conversion = My_Units_Conversion

	HTML = HTML_snip()
	DRL_stats = Stats(DRL_num)
	DRL_Histo = HT(DRL_num, NDRL_num,Units_Conversion,local_DRL)
	#Anlysis_stats = Dispatch
	number_of_points = len(DRL_num)

	#self.response.headers['Content-Type'] = 'text/plain'

        self.response.out.write(HTML.header("Results","DataEntry","results"))


        self.response.out.write(HTML.body_header())
# This has now output the menu up to the point at which we insert the actual content

 	self.response.out.write(HTML.calc_header())
#  Need to put the input output result header here

#	self.response.out.write(HTML.data_entry_form_1(NDRL_num))	
#	if number_of_points > 1:
#	 for item in DRL_num:
#		self.response.out.write('%s\n' % item)
#	self.response.out.write(HTML.data_entry_form_2())

        self.response.out.write(HTML.openResultContainer)
	if number_of_points > 1:
 	 HTML_bits = DRL_Histo.quick_results()

# This bit is the results and can be included in a separate page
	 HTML_bits_count = len(HTML_bits)
	 for item in range(HTML_bits_count):
          self.response.out.write(HTML_bits[item])         

	else:
         self.response.out.write("""<div class="Result">""")
	 self.response.out.write('No data has been entered yet! <br>  Copy and paste data or enter directly in the box to the left using a new line for each data point.<br> When you are done click the calculate button.<br>  This page will give you a summary of your data.  <br>Go to the analysis tab for a detailed breakdown of your data. <br> You may edit data points directly and use calculate to update the results. <br>  Go to the sample tab to use pre-set data. ')
         self.response.out.write("""</div>""")
	# This is the data entry form. Its position is determined by stylesheet parameters
	self.response.out.write(HTML.closeResultContainer)

        self.response.out.write(HTML.footer)
示例#5
0
    def get(self):
        global My_Global_DRL
        DRL_num = My_Global_DRL
        global My_Global_NDRL
        NDRL_num = My_Global_NDRL
        global My_local_DRL
        local_DRL = My_local_DRL
        global My_Units_Conversion
        Units_Conversion = My_Units_Conversion
        HTML = HTML_snip()
        DRL_stats = Stats(DRL_num)
        DRL_Histo = HT(DRL_num, NDRL_num, Units_Conversion, local_DRL)
        #Anlysis_stats = Dispatch
        number_of_points = len(DRL_num)

        #self.response.headers['Content-Type'] = 'text/plain'

        self.response.out.write(
            HTML.header("Data Entry", "DataEntry", "enterdata"))

        self.response.out.write(HTML.body_header())
        # This has now output the menu up to the point at which we insert the actual content

        self.response.out.write(HTML.calc_header())

        #  Need to put the input output result header here

        self.response.out.write(HTML.data_entry_form_1(NDRL_num))
        if number_of_points > 1:
            for item in DRL_num:
                self.response.out.write('%s\n' % item)
        self.response.out.write(HTML.data_entry_form_2())

        self.response.out.write(HTML.footer)
示例#6
0
    def get(self):
	HTML = HTML_snip()
	NDRL = NDRL_tables()
	#NDRL_v2 = NDRL_tables_v2()
        #self.response.headers['Content-Type'] = 'text/plain'
       # Displays in text if you leave this in!!

        self.response.out.write(HTML.header("National DRLs","National_DRLs", " "))


        self.response.out.write(HTML.body_header())

	#self.response.out.write(NDRL.DRL_2005())
	#self.response.out.write(NDRL.NDRL_table_2005())
	for item in NDRL.NDRL_table_2005():
	 self.response.out.write(item)

        self.response.out.write(HTML.footer)
示例#7
0
    def get(self):
        HTML = HTML_snip()
        NDRL = NDRL_tables()
        #NDRL_v2 = NDRL_tables_v2()
        #self.response.headers['Content-Type'] = 'text/plain'
        # Displays in text if you leave this in!!

        self.response.out.write(
            HTML.header("National DRLs", "National_DRLs", " "))

        self.response.out.write(HTML.body_header())

        #self.response.out.write(NDRL.DRL_2005())
        #self.response.out.write(NDRL.NDRL_table_2005())
        for item in NDRL.NDRL_table_2005():
            self.response.out.write(item)

        self.response.out.write(HTML.footer)
示例#8
0
    def get(self):
        HTML = HTML_snip()
        sample = data_samples()
        global My_Units_Conversion
        #My_Units_Conversion = "1"
        # self.response.headers['Content-Type'] = 'text/plain'
        # Displays in text if you leave this in!!

        self.response.out.write(HTML.header("Sample Data", "sample", " "))

        self.response.out.write(HTML.body_header())

        self.response.out.write(sample.sample_data())
        #self.response.out.write(sample.sample_data_2())
        #self.response.out.write(sample.sample_data_3())
        #self.response.out.write(sample.sample_data_4())
        #self.response.out.write(sample.sample_data_5())
        #self.response.out.write(sample.sample_data_6())
        self.response.out.write(HTML.footer)
示例#9
0
    def get(self):
	HTML = HTML_snip()
	sample = data_samples()
	global My_Units_Conversion
	#My_Units_Conversion = "1"
        # self.response.headers['Content-Type'] = 'text/plain'
       # Displays in text if you leave this in!!

        self.response.out.write(HTML.header("Sample Data","sample"," "))


        self.response.out.write(HTML.body_header())

	self.response.out.write(sample.sample_data())
	#self.response.out.write(sample.sample_data_2())
	#self.response.out.write(sample.sample_data_3())
	#self.response.out.write(sample.sample_data_4())
	#self.response.out.write(sample.sample_data_5())
	#self.response.out.write(sample.sample_data_6())
        self.response.out.write(HTML.footer)
示例#10
0
    def get(self):
        global My_Global_DRL
	DRL_num = My_Global_DRL
	global My_Global_NDRL
	NDRL_num = My_Global_NDRL
	global My_local_DRL
	local_DRL = My_local_DRL
	global My_Units_Conversion
	Units_Conversion = My_Units_Conversion
	HTML = HTML_snip()
	DRL_stats = Stats(DRL_num)
	DRL_Histo = HT(DRL_num, NDRL_num,Units_Conversion, local_DRL)
	#Anlysis_stats = Dispatch
	number_of_points = len(DRL_num)

	#self.response.headers['Content-Type'] = 'text/plain'

        self.response.out.write(HTML.header("Data Entry","DataEntry", "enterdata"))

        self.response.out.write(HTML.body_header())
# This has now output the menu up to the point at which we insert the actual content

 	self.response.out.write(HTML.calc_header())

#  Need to put the input output result header here

	self.response.out.write(HTML.data_entry_form_1(NDRL_num))	
	if number_of_points > 1:
	 for item in DRL_num:
		self.response.out.write('%s\n' % item)
	self.response.out.write(HTML.data_entry_form_2())

        self.response.out.write(HTML.footer)
示例#11
0
    def get(self):
        HTML = HTML_snip()

        # self.response.headers['Content-Type'] = 'text/plain'
        # Displays in text if you leave this in!!

        #self.response.out.write(HTML.header("DRL Calculator","Home"," "))

        #self.response.out.write(HTML.body_header())
        #self.response.out.write(HTML.welcome())
        #self.response.out.write(HTML.footer)
        template_values = {
            #	'my_qr_code': my_qr_code,

            #	'login_url' : login_url,
            #	'logout_url' : logout_url,
            #	'logon_message' : logon_message,
            #	'user_nickname_or_url' : user_nickname_or_url,
            'menu_item': 'Home',
            'pageTitle': 'DRL Calculator',
        }
        path = os.path.join(os.path.dirname(__file__), 'html/index.html')
        self.response.out.write(template.render(path, template_values))