Exemple #1
0
    def isUpdated(self, sourceName, key):
        if sps.specrunning(sourceName):
            if sps.isupdated(sourceName, key):
                return True

            #return True if its environment is updated
            envkey = key + "_ENV"
            if envkey in sps.getarraylist(sourceName):
                if sps.isupdated(sourceName, envkey):
                    return True
        return False
Exemple #2
0
    def isUpdated(self, sourceName, key):
        if sps.specrunning(sourceName):
            if sps.isupdated(sourceName, key):
                return True

            #return True if its environment is updated
            envkey = key + "_ENV"
            if envkey in sps.getarraylist(sourceName):
                if sps.isupdated(sourceName, envkey):
                    return True
        return False
Exemple #3
0
 def RefreshPage(self,sourcename,key):
     specname = sourcename
     arrayname= key
     if not sps.specrunning(specname):
         return 0
     
     if sps.isupdated(specname,arrayname):
         return 1
     else:
         return 0
Exemple #4
0
    def RefreshPage(self,sourcename,key):
        specname = sourcename
        arrayname= key
        if not sps.specrunning(specname):
            return 0

        if sps.isupdated(specname,arrayname):
            return 1
        else:
            return 0