[MOBY-guts] biomoby commit

Yan Wong yanwong at pub.open-bio.org
Wed Feb 16 15:38:46 UTC 2005


yanwong
Wed Feb 16 10:38:46 EST 2005
Update of /home/repository/moby/moby-live/Python/bioMoby
In directory pub.open-bio.org:/tmp/cvs-serv11495/bioMoby

Modified Files:
	mobyDataTypes.py 
Log Message:


moby-live/Python/bioMoby mobyDataTypes.py,1.14,1.15
===================================================================
RCS file: /home/repository/moby/moby-live/Python/bioMoby/mobyDataTypes.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- /home/repository/moby/moby-live/Python/bioMoby/mobyDataTypes.py	2005/02/04 16:03:40	1.14
+++ /home/repository/moby/moby-live/Python/bioMoby/mobyDataTypes.py	2005/02/16 15:38:46	1.15
@@ -172,7 +172,7 @@
         
         self.content=[]
         
-        if elem.nodeName.split(":")>1:
+        if elem.nodeName.split(":")==2:
             self.__prefix__=elem.nodeName.split(":")[0]
         
         #Set the object's attributes
@@ -406,8 +406,11 @@
                     p=Parameter()
                     p.fromMoby(datum)
                     data.append(p)
-                    
-            self.queryData[queryID]=data
+            
+            if not queryID in self.queryData.keys():
+                self.queryData[queryID]=data
+            else:
+                self.queryData[str(len(self.queryData.keys())+1)]=data
     
     def __getitem__(self, key):
         """Get a query from his name




More information about the MOBY-guts mailing list