203 | | if softlimit <= pagecounter < hardlimit : |
204 | | now = DateTime.now() |
205 | | if datelimit is None : |
206 | | datelimit = now + self.config.getGraceDelay() |
207 | | self.storage.setDateLimit(username, printername, datelimit) |
208 | | if now < datelimit : |
209 | | action = "WARN" |
210 | | else : |
211 | | action = "DENY" |
212 | | else : |
213 | | action = "DENY" |
| 206 | if softlimit <= pagecounter < hardlimit : |
| 207 | now = DateTime.now() |
| 208 | if datelimit is None : |
| 209 | datelimit = now + self.config.getGraceDelay() |
| 210 | self.storage.setDateLimit(username, printername, datelimit) |
| 211 | if now < datelimit : |
| 212 | action = "WARN" |
| 213 | else : |
| 214 | action = "DENY" |
| 215 | else : |
| 216 | action = "DENY" |