Skip to content

Commit

Permalink
Merge pull request #2093 from fstagni/fixesWMSv6r11
Browse files Browse the repository at this point in the history
[v6r11] Some fixes for WMS
  • Loading branch information
Andrei Tsaregorodtsev committed Oct 1, 2014
2 parents cb6b5db + e2b5cc2 commit 5e0f8d5
Show file tree
Hide file tree
Showing 16 changed files with 284 additions and 808 deletions.
8 changes: 7 additions & 1 deletion Core/Utilities/TimeSeries.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import datetime

class TimeSeries:
class TimeSeries( object ):

###########################################################################
def __init__( self, maxEntries = False, maxAge = False, minAge = False ):
Expand All @@ -23,6 +23,12 @@ def __repr__( self ):
def __str__( self ):
return str( self.convertToList() )

###########################################################################
def __nonzero__( self ):
""" for comparisons
"""
return True

###########################################################################
def __len__( self ):
return len( self.data )
Expand Down
5 changes: 5 additions & 0 deletions DataManagementSystem/Client/FTSJob.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,11 @@ def fileStatusList( self ):
""" get list of files statuses """
return [ ftsFile.Status for ftsFile in self ]

def __nonzero__( self ):
""" for comparisons
"""
return True

def __len__( self ):
""" nb of subFiles """
return len( self.__files__ )
Expand Down
5 changes: 5 additions & 0 deletions RequestManagementSystem/Client/Operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ def fileStatusList( self ):
""" get list of files statuses """
return [ subFile.Status for subFile in self ]

def __nonzero__( self ):
""" for comparisons
"""
return True

def __len__( self ):
""" nb of subFiles """
return len( self.__files__ )
Expand Down
5 changes: 5 additions & 0 deletions RequestManagementSystem/Client/Request.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@ def indexOf( self, subReq ):
""" return index of subReq (execution order) """
return self.__operations__.index( subReq ) if subReq in self else -1

def __nonzero__( self ):
""" for comparisons
"""
return True

def __len__( self ):
""" nb of subRequests """
return len( self.__operations__ )
Expand Down
Loading

0 comments on commit 5e0f8d5

Please sign in to comment.