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
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to