[MOBY-guts] biomoby commit
Yan Wong
yanwong at pub.open-bio.org
Wed Dec 8 14:54:50 UTC 2004
yanwong
Wed Dec 8 09:54:50 EST 2004
Update of /home/repository/moby/moby-live/Python/tutorials/Service
In directory pub.open-bio.org:/tmp/cvs-serv29800
Added Files:
async.py blastpgp.py testMarshaller.py testMobyService.py
testMobyService2.py
Log Message:
moby-live/Python/tutorials/Service async.py,NONE,1.1 blastpgp.py,NONE,1.1 testMarshaller.py,1.2,1.3 testMobyService.py,1.2,1.3 testMobyService2.py,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Python/tutorials/Service/testMarshaller.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Python/tutorials/Service/testMarshaller.py 2004/12/08 11:15:31 1.2
+++ /home/repository/moby/moby-live/Python/tutorials/Service/testMarshaller.py 2004/12/08 14:54:50 1.3
@@ -29,7 +29,7 @@
o=um.loads(s)
-print "content of the object"
-for object in o.queryData:
- print str(object)
+print "contents:"
+for query in o.keys():
+ print o[query][0].content
===================================================================
RCS file: /home/repository/moby/moby-live/Python/tutorials/Service/testMobyService.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Python/tutorials/Service/testMobyService.py 2004/12/08 11:15:31 1.2
+++ /home/repository/moby/moby-live/Python/tutorials/Service/testMobyService.py 2004/12/08 14:54:50 1.3
@@ -30,7 +30,7 @@
print "Service getNASC_codebyAGI_locus executed with query1 namespace=AGI_LocusCode and id=At3g19100...\n"
- resultat=myService.execute(query)
+ resultat=myService.execute(query, debug=True)
print "the xml form\n"
===================================================================
RCS file: /home/repository/moby/moby-live/Python/tutorials/Service/testMobyService2.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Python/tutorials/Service/testMobyService2.py 2004/12/08 11:15:31 1.2
+++ /home/repository/moby/moby-live/Python/tutorials/Service/testMobyService2.py 2004/12/08 14:54:50 1.3
@@ -16,7 +16,7 @@
object=MobyObject(namespace='DragonDB_Allele',id='cho')
print "Service executed with query namespace=DragonDB_Allele and id=cho"
-resultat=service.execute(MobyContent({'query1':[object]}))
+resultat=service.execute(MobyContent({'query1':[object]}), debug=True)
print resultat
More information about the MOBY-guts
mailing list