Mercurial > hg > orthanc
comparison Resources/Samples/Python/ChangesLoop.py @ 3340:ca65e3dcce72
typo
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Apr 2019 16:03:29 +0200 |
parents | 4e43e67f8ecf |
children | 94f4a18a79cc |
comparison
equal
deleted
inserted
replaced
3339:d59521c395d9 | 3340:ca65e3dcce72 |
---|---|
69 'since' : current, | 69 'since' : current, |
70 'limit' : 4 # Retrieve at most 4 changes at once | 70 'limit' : 4 # Retrieve at most 4 changes at once |
71 }) | 71 }) |
72 | 72 |
73 for change in r['Changes']: | 73 for change in r['Changes']: |
74 # We are only interested interested in the arrival of new instances | 74 # We are only interested in the arrival of new instances |
75 if change['ChangeType'] == 'NewInstance': | 75 if change['ChangeType'] == 'NewInstance': |
76 # Call the callback function | 76 # Call the callback function |
77 path = change['Path'] | 77 path = change['Path'] |
78 NewInstanceReceived(path) | 78 NewInstanceReceived(path) |
79 | 79 |