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/output statsdb.py
Date Fri, 09 Jan 2004 23:46:53 GMT
ajack       2004/01/09 15:46:53

  Modified:    python/gump/output statsdb.py
  Log:
  Maybe I goit it at third. 'sequenceInState' wasn't benig saved/loaded.
  [Earlier, failures and prereqs weren't being calculated, also]
  
  Without 'sequences > 1' RSS/Atom were always spewing...
  
  Revision  Changes    Path
  1.11      +9 -3      jakarta-gump/python/gump/output/statsdb.py
  
  Index: statsdb.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/output/statsdb.py,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- statsdb.py	9 Jan 2004 23:28:40 -0000	1.10
  +++ statsdb.py	9 Jan 2004 23:46:53 -0000	1.11
  @@ -161,6 +161,7 @@
           stats.currentState=stateForName(self.get(stats.currentStateKey()))
           stats.previousState=stateForName(self.get(stats.previousStateKey()))
           stats.startOfState=self.getDate(stats.startOfStateKey())
  +        stats.sequenceInState=self.getInt(stats.sequenceInStateKey())
           
       def putBaseStats(self,stats):        
           self.put(stats.nameKey(), stats.name)
  @@ -172,6 +173,7 @@
           self.put(stats.currentStateKey(), stateName(stats.currentState))
           self.put(stats.previousStateKey(), stateName(stats.previousState))
           self.putDate(stats.startOfStateKey(), stats.startOfState)
  +        self.putInt(stats.sequenceInStateKey(), stats.sequenceInState)
   
       def delBaseStats(self,stats):
           try:
  @@ -208,6 +210,10 @@
               """ Hopefully means it wasn't there... """        
           try:
               del self.db[stats.startOfStateKey()]
  +        except:
  +            """ Hopefully means it wasn't there... """        
  +        try:
  +            del self.db[stats.sequenceInStateKey()]
           except:
               """ Hopefully means it wasn't there... """
           
  
  
  

Mime
View raw message