[MOBY-guts] biomoby commit
Yan Wong
yanwong at pub.open-bio.org
Tue Apr 19 15:41:50 UTC 2005
yanwong
Tue Apr 19 11:41:50 EDT 2005
Update of /home/repository/moby/moby-live/Python/tutorials/webservices
In directory pub.open-bio.org:/tmp/cvs-serv16275/tutorials/webservices
Modified Files:
Clustalw.py bioMoby-Oracle.py
Log Message:
Added a SQL invocator and Dispatcher
this should ease the build of DB based webservices
moby-live/Python/tutorials/webservices Clustalw.py,1.3,1.4 bioMoby-Oracle.py,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Python/tutorials/webservices/Clustalw.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- /home/repository/moby/moby-live/Python/tutorials/webservices/Clustalw.py 2004/12/08 14:53:40 1.3
+++ /home/repository/moby/moby-live/Python/tutorials/webservices/Clustalw.py 2005/04/19 15:41:50 1.4
@@ -33,8 +33,9 @@
def ClustalFormatter(results):
def ClustalFormatter(results):
- """Return the results in a MobyClustalAlnFormattedText object
- """
+ """Return the results in a MobyClustalAlnFormattedText object
+ """
+
from bioMoby import MobyClustalAlnFormattedText
return [MobyClustalAlnFormattedText(content=results)]
===================================================================
RCS file: /home/repository/moby/moby-live/Python/tutorials/webservices/bioMoby-Oracle.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Python/tutorials/webservices/bioMoby-Oracle.py 2005/01/18 13:22:58 1.1
+++ /home/repository/moby/moby-live/Python/tutorials/webservices/bioMoby-Oracle.py 2005/04/19 15:41:50 1.2
@@ -87,7 +87,7 @@
mobyResults=[]
- for aResult in resultset:
+ #for aResult in resultset:
#Format your results here, use Moby Objects here:
#Example:
@@ -98,8 +98,8 @@
return [("nameOfTheCollection",mobyResults)]
except:
#Something wrong occured, then return a error, normally, it should never happen...
- sio=StringIO.StringIO()
- traceback.print_exc(file=sio)
+ sio=StringIO.StringIO()
+ traceback.print_exc(file=sio)
results['ERROR']=[MobyString(content=sio.getvalue())]
More information about the MOBY-guts
mailing list