[MOBY-guts] biomoby commit

Yan Wong yanwong at pub.open-bio.org
Tue Feb 1 11:25:53 UTC 2005


yanwong
Tue Feb  1 06:25:53 EST 2005
Update of /home/repository/moby/moby-live/Python/bioMoby
In directory pub.open-bio.org:/tmp/cvs-serv13870

Modified Files:
	mobyDataTypes.py 
Log Message:


moby-live/Python/bioMoby mobyDataTypes.py,1.6,1.7
===================================================================
RCS file: /home/repository/moby/moby-live/Python/bioMoby/mobyDataTypes.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- /home/repository/moby/moby-live/Python/bioMoby/mobyDataTypes.py	2005/02/01 08:52:15	1.6
+++ /home/repository/moby/moby-live/Python/bioMoby/mobyDataTypes.py	2005/02/01 11:25:53	1.7
@@ -149,7 +149,7 @@
         #Put the raw content of the object
         #If you want to put your special object, then then you should write 
         #a __str__ method
-        if hasattr(self, "content") and self.content:
+        if hasattr(self, "content") and self.content!=none and self.content!="":
             result.append("%s"%(self.content))
         
         result.append("</%s:%s>"%(self.__prefix__, self.__tag__))




More information about the MOBY-guts mailing list