Exemplo n.º 1
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
Exemplo n.º 2
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
Exemplo n.º 3
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
Exemplo n.º 4
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