From 65a6a9c5f21d42fa43d13823be632760abbc4891 Mon Sep 17 00:00:00 2001 From: Zachary Sloan Date: Fri, 2 Nov 2012 18:11:55 -0500 Subject: Created search objects for GeneRIF and GeneWiki searches Got search results to display Refactored the template for show_trait page --- web/webqtl/base/webqtlTrait.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'web/webqtl') diff --git a/web/webqtl/base/webqtlTrait.py b/web/webqtl/base/webqtlTrait.py index f5051e45..2469504f 100644 --- a/web/webqtl/base/webqtlTrait.py +++ b/web/webqtl/base/webqtlTrait.py @@ -9,6 +9,10 @@ from dbFunction import webqtlDatabaseFunction from utility import webqtlUtil +from __future__ import print_function, division + +from pprint import pformat as pf + class webqtlTrait: """ Trait class defines a trait in webqtl, can be either Microarray, @@ -215,6 +219,9 @@ class webqtlTrait: def retrieveData(self, strainlist=[]): assert self.db and self.cursor + debug_file = open("/home/zas1024/gn/web/traitlist_debug.txt", "w") + debug_file.write("strianlist is:" + strainlist + "\n") + if self.db.type == 'Temp': query = ''' SELECT @@ -341,6 +348,8 @@ class webqtlTrait: #end if else: pass + + debug_file.write("self.data is:", pf(self.data) + "\n") def keys(self): return self.__dict__.keys() -- cgit v1.2.3