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/document forrest.py
Date Mon, 09 Feb 2004 19:09:36 GMT
ajack       2004/02/09 11:09:36

  Modified:    python/gump/model server.py
               python/gump/document forrest.py
  Log:
  More tweaks/content for servers
  
  Revision  Changes    Path
  1.2       +5 -0      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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- server.py	1 Feb 2004 18:44:44 -0000	1.1
  +++ server.py	9 Feb 2004 19:09:36 -0000	1.2
  @@ -87,6 +87,11 @@
              
       def getType(self):
           return self.type
  +        
  +    def hasTitle(self): 
  +        return hasattr(self.xml,'title') and self.xml.title
  +        
  +    def getTitle(self): return str(self.xml.title)
               
       
       def dump(self, indent=0, output=sys.stdout):
  
  
  
  1.65      +10 -5     jakarta-gump/python/gump/document/forrest.py
  
  Index: forrest.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/document/forrest.py,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -r1.64 -r1.65
  --- forrest.py	9 Feb 2004 18:26:00 -0000	1.64
  +++ forrest.py	9 Feb 2004 19:09:36 -0000	1.65
  @@ -794,8 +794,13 @@
           detailSection=document.createSection('Server Details')
           detailList=detailSection.createList()        
           
  -        #if server.hasTitle():
  -        #    detailList.createEntry('Title: ', server.getTitle())
  +        detailList.createEntry('Name: ', server.getName())
  +    
  +        if server.hasType():
  +            detailList.createEntry('Type: ', server.getType())
  +    
  +        if server.hasTitle():
  +            detailList.createEntry('Title: ', server.getTitle())
       
           self.documentXML(document,server)
           
  
  
  

Mime
View raw message