Example #1
0
 def __haschanged(self, requestid, requesttype):
     if requesttype == "rawrequest":
         states = FOIRawRequest.getstatenavigation(requestid)
     else:
         states = FOIMinistryRequest.getstatenavigation(requestid)
     if len(states) == 2:
         newstate = states[0]
         oldstate = states[1]
         if newstate != oldstate:
             return newstate
     return None
Example #2
0
 def __hasreopened(self, requestid, requesttype):
     if requesttype == "rawrequest":
         states =  FOIRawRequest.getstatenavigation(requestid)
     else:
         states =  FOIMinistryRequest.getstatenavigation(requestid)
     if len(states) == 2:
         newstate = states[0]
         oldstate = states[1]
         if newstate != oldstate and oldstate == "Closed":
             return True
     return False