[MOBY-guts] biomoby commit

Yan Wong yanwong at pub.open-bio.org
Tue Feb 1 14:33:49 UTC 2005


yanwong
Tue Feb  1 09:33:49 EST 2005
Update of /home/repository/moby/moby-live/Python/bioMoby
In directory pub.open-bio.org:/tmp/cvs-serv14879/bioMoby

Modified Files:
	mobyDataTypes.py 
Log Message:


moby-live/Python/bioMoby mobyDataTypes.py,1.9,1.10
===================================================================
RCS file: /home/repository/moby/moby-live/Python/bioMoby/mobyDataTypes.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- /home/repository/moby/moby-live/Python/bioMoby/mobyDataTypes.py	2005/02/01 14:20:44	1.9
+++ /home/repository/moby/moby-live/Python/bioMoby/mobyDataTypes.py	2005/02/01 14:33:49	1.10
@@ -107,7 +107,7 @@
         mobyObjects=filter(filterFunc, dir(self))
         
         #If none, return the tag closed
-        if len(mobyObjects)==0 and (not hasattr(self, "__cross__") or len(self.__cross__)==0) and (not hasattr(self, "__PIB__") or len(self.__PIB__)==0) and (not hasattr(self, "content") or not self.content):
+        if len(mobyObjects)==0 and (not hasattr(self, "__cross__") or len(self.__cross__)==0) and (not hasattr(self, "__PIB__") or len(self.__PIB__)==0) and (not hasattr(self, "content") or self.content==None or self.content==""):
             beginTag.append("/>")
             return " ".join(beginTag)
 




More information about the MOBY-guts mailing list