gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: jakarta-gump/python/gump/model server.py
Date Mon, 09 Feb 2004 19:30:12 GMT
ajack       2004/02/09 11:30:12

  Modified:    python/gump/model server.py
  Log:
  It is the little things that trip you up...
  
  Revision  Changes    Path
  1.3       +2 -3      jakarta-gump/python/gump/model/server.py
  
  Index: server.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/model/server.py,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- server.py	9 Feb 2004 19:09:36 -0000	1.2
  +++ server.py	9 Feb 2004 19:30:12 -0000	1.3
  @@ -82,11 +82,10 @@
           pass
           
       def hasType(self):
  -        if self.type: return 1
  -        return 0            
  +        return hasattr(self.xml,'type') and self.xml.type
              
       def getType(self):
  -        return self.type
  +        return str(self.xml.type)
           
       def hasTitle(self): 
           return hasattr(self.xml,'title') and self.xml.title
  
  
  

Mime
View raw message