gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: gump/python/gump/results model.py
Date Sat, 10 Apr 2004 23:53:35 GMT
ajack       2004/04/10 16:53:35

  Modified:    python/gump/results model.py
  Log:
  Fix #3 to tweaks...
  
  Revision  Changes    Path
  1.10      +29 -17    gump/python/gump/results/model.py
  
  Index: model.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/results/model.py,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- model.py	10 Apr 2004 23:09:29 -0000	1.9
  +++ model.py	10 Apr 2004 23:53:35 -0000	1.10
  @@ -126,7 +126,34 @@
               f.write(self.getXMLData())
           finally:
               # Since we may exit via an exception, close explicitly.
  -            if f: f.close()            
  +            if f: f.close()           
  +            
  +        
  +    def getTimezone(self):
  +        if not hasattr(self,'timzone') : 
  +            return self.getOwner().getTimezone()    
  +        return self.timezone
  +        
  +    def getStartDateTime(self):
  +        if not hasattr(self,'startDateTime') : 
  +            return self.getOwner().getStartDateTime()
  +        return self.startDateTime
  +        
  +    def getStartDateTimeUtc(self):
  +        if not hasattr(self,'startDateTimeUtc') : 
  +            return self.getOwner().getStartDateTimeUtc()    
  +        return self.startDateTimeUtc
  +        
  +    def getEndDateTime(self):
  +        if not hasattr(self,'endDateTime') : 
  +            return self.getOwner().getEndDateTime()    
  +        return self.endDateTime
  +        
  +    def getEndDateTimeUtc(self):
  +        if not hasattr(self,'endDateTimeUtc') : 
  +            return self.getOwner().getEndDateTimeUtc()       
  +        return self.endDateTimeUtc
  +         
   
   # represents a <workspaceResult/> element
   class WorkspaceResult(ResultModelObject):
  @@ -160,22 +187,7 @@
           return 0    
           
       def getProjectResults(self):
  -        return self.projectResults.values()    
  -        
  -    def getTimezone(self):
  -        return self.timezone
  -        
  -    def getStartDateTime(self):
  -        return self.startDateTime
  -        
  -    def getStartDateTimeUtc(self):
  -        return self.startDateTimeUtc
  -        
  -    def getEndDateTime(self):
  -        return self.endDateTime
  -        
  -    def getEndDateTimeUtc(self):
  -        return self.endDateTimeUtc
  +        return self.projectResults.values()  
           
       #
       # Named...
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message